Reputation: 106609
I have a program, let's call it test.exe
, in the current directory, that I'd like to debug with WinDBG. I'd like to launch WinDBG as if I had clicked the "open executable" and pointed it at this program, and clicked "open source file" and pointed it at test.cpp
.
Is there something I can feed through -c
to do this?
Upvotes: 0
Views: 2054
Reputation: 59513
As mentioned by Sean Cline in the comments, you can use
windbg.exe -c ".open test.cpp" test.exe
and perhaps work with -srcpath
to get the directories right.
Upvotes: 2