User forums > Using Code::Blocks

MSVC 8 debugger

(1/3) > >>

Halan:
heya,

can someone explain me how to debug using msvc8 because when i try to "start debug" i always says that the debug executable is not set. But i dont know which executable the debug executeable is :(

thanks for any help,
halan

johne53:
I'm trying to find out the same information - but for MSVC 6. I've come to the conclusion that Microsoft's debugger is built into the IDE (in other words, part of the functionality of MSDEV.EXE) but it'd be great if anyone knows different.

TDragon:
You need Microsoft's Debugging Tools for Windows, to get the command-line debugger "cdb.exe". Make sure the folder containing cdb.exe is in the Additional Paths tab of the Toolchain executables tab of your compiler settings for MSVC. (And make sure "Debugger" is set to "cdb.exe" -- which it should be by default for Microsoft compilers.)

cacb:
Hi,

I use VC2005 Express with C::B, partly because the MSVC debugger is quite good. I have found the easiest is to make a global variable in C::B called VC2005IDE which points to the install dir of VC2005 Express in my case.

Then I configure a tool in the Tools menu

Name: VC2005 Debug
Executable: $(#VC2005IDE)\VCExpress.exe
Parameters: /debugexe ${TARGET_OUTPUT_FILE}
Working directory: ${TARGET_OUTPUT_DIR}
check the option "Launch tool visible detached"

So while I edit/compile/build in C::B, this simple fix launches the VC2005 Express for debugging when needed. Notice that you don't need a VS project/solution to do this.

cacb

TDragon:
cacb: That's an excellent tip! I wonder if there's any way that could make it into the C::B Wiki...

Navigation

[0] Message Index

[#] Next page

Go to full version