views:

81

answers:

2

hi,

I hav my execuatable produced by command line building.

I want to debug it in command line itself as like as gdb does in linux.

Also i want run my program in Visual studio GUI from command line options..

How can i do that?

+1  A: 

Make sure it is compiled in the debug version. Run the program. Then "Attach to Process" from VS tools menu.

You can also specify the runtime options when running the debugger (it's in the project properties).

dmo
A: 

I don't think that VS has a pure command line mode, but you could use CDB/NTSD.

http://msdn.microsoft.com/en-us/library/cc266320.aspx

It is what lots of developers at MS do.

Joe Beda