-
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks