Debugging a console applicatoin?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Debugging a console applicatoin?

Hybrid View

  1. #1
    Calvin Guest

    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...

  2. #2
    James World Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center