I am trying to create a console window for debugging in C#.
For example, consider the following scenario:
I have a forms app and I want to log events to a console window in real time.
When an event is triggered the forms app should send data to be printed to the console app so that I can see when the event is triggered and data about the specific event.
When I input a specific command in the console app, it sends the command to the forms app and triggers the event.
Because it is for debugging, the console should be a separate app so that if the main app dies, the console window won't.
If I do this right I assume I should be able to get the console app working with programs such as Console2/Conemu.
Does anyone know the correct technique to achieve this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…