how to debug a main with arg

how to debug a main with arg

Post by VHJpcGx » Tue, 25 Jan 2005 16:27:01

I am running in VC++6.0 environment. The main function in the cpp file has
argument and is defined as:
int main(int argc, char *argv[])

When I want to run the function, I have to go to the command window.
However, it brings a lot of inconvenience to debug. I set up the breakpoints
in the main function, it doesn't work. Is there a better way to debug in this
ps. I am a beginner here and not sure whether my topic is good for this
discussion group. If inappropriate, please kindly forward to the right group.
Thank you in advance.

how to debug a main with arg

Post by Ken Wickes » Wed, 26 Jan 2005 08:03:41

Just run the program from VC, it doesn't care that it is a command line app.


Ken Wickes [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.