Renjith G
Renjith G

Reputation: 6727

How can i debug in visual studio as command line?

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?

Upvotes: 1

Views: 243

Answers (2)

Joe Beda
Joe Beda

Reputation: 2761

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.

Upvotes: 0

dmo
dmo

Reputation: 4083

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

Upvotes: 1

Related Questions