Debugging a console applicatoin?
How do you do it? I have a console application that just runs through and
then upon completion, the console window closes. I know I can just put a
readline to stop this process, but there must be another way. I can also
open a command prompt and then run the exe, but then I can't monitor my variables
or hit break points that way.
So what I want to do is, run a console application while hitting breakpoints
and being able to use the immediate window AND be able to see my output as
my program finishes without the window closing.
Can this be done?
Thanks,
Calvin...
Re: Debugging a console applicatoin?
Try this:
#if DEBUG
Console.Readline();
#endif
or similar...
James.
"Calvin" <calvin.walker@ppmamerica.com> wrote:
>
>How do you do it? I have a console application that just runs through and
>then upon completion, the console window closes. I know I can just put
a
>readline to stop this process, but there must be another way. I can also
>open a command prompt and then run the exe, but then I can't monitor my
variables
>or hit break points that way.
>
>So what I want to do is, run a console application while hitting breakpoints
>and being able to use the immediate window AND be able to see my output
as
>my program finishes without the window closing.
>
>Can this be done?
>
>Thanks,
>Calvin...