Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display console application window for debugging a DLL

We have a DLL that extends a 3rd party application. I would like to have this DLL open up a console window when it launches purely for debugging purposes. I know of the trick to do this with a windows application (change the output type to console application). Is there any way to do this with a class library?

like image 955
P.Brian.Mackey Avatar asked Jul 13 '26 23:07

P.Brian.Mackey


1 Answers

I'd recommend using System.Diagnostics namespace and using the Debug.*/Trace.* methods. Retrieving it is then a matter of using your IDE or (if running in another application) something like DebugView.

like image 68
Brad Christie Avatar answered Jul 15 '26 11:07

Brad Christie