I'd like to second Snikket - it's designed for this use case and is very simple to set up.
If you'd rather not use Snikket, check out these recommendations for clients and servers.
Hope it works for you! Feel free to reach out if you have any questions.
Perfect, now you just have to wrap your program inside a debugger in production!