c# Console windows in a WPF application
Posted on 2011-03-09
I've searched the internet and found that it appears to be impossible to open a console window with a windows WPF application. I'm hoping that someone knows a work around or knows another way to do this.
I've got an application that I want to debug. In programming with linux or many other languages I would just put in a printf and dump variable information to let me know how far an application has made it.
In my app I use a background worker process and it works great in my lab and a couple of other places but at one location it just sits. My ideal world would be to open a console window and dump information from the process to the window as it goes.
Since I'm using a background worker, it's not easy to even put in a label and update the label with what is going on. And since I don't have visual studio on this production server I can't compile and run it there and access breakpoints.
Anyone have an idea on how I can debug in this environment?