User forums > Using Code::Blocks

Unable to debug with Visual C++ 2008 Express

(1/2) > >>

skywriter:
I use Code::Blocks 8.02 under WinXP.
I've got MS Visual Studio 2008 Express (VC++ 9.0) installed.
I adjusted Code::Block to use Microsoft Visual C++ 2005/2008 compiler.
But when i try to debug project it says "The debugger executable is not set".
I obtained that Code::Blocks is adjusted for using "cdb.exe" as debugger.
But there is no such file in my system!
At the same time MS Visual Studio starts debug OK.
What application should i set up as debug tool?

pir:
I have the same problem and was searching the CodeBlocks Wiki for an answer...

It appears that you have to download the debugging tools for Visual C++ separately - see

http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx#a

Seems a bit like car with optional steering wheel... but with MinGW, you have to download gdb separately as well!

Haven't got round to trying it yet as my PC has decided to download XP SP3....

Pls. post if you get it working.

pir

pir:
PS - Anybody who knows what they are doing with a Wiki able to modify the links to the MS compilers? The current ones are not correct. Maybe also put a note on where to find the debugging tools...

pir

pir:
Right then!

I have installed the debugging tools. (You need to specify the install path - C:/Program Files/Debugging Tools for Windows - on the "Additional Paths" tab where the toolchain executables are specified in CodeBlocks. The debugger starts but then immediately caves in with a "Symbol file could not be found" error! Basically it is looking for a *.pdb file which presumably cdb can't find because it is looking in it's local directory.

Any ideas?

(See http://msdn.microsoft.com/en-us/library/aa139733.aspx for further information on the Windows debuggers.)

pir

pir:
I give up! Setting the debugger output to verbose, I can see that the project path, etc. are all being passed to cdb. Also, it seems to be looking in the right place for the 'missing' symbol file (vc90.pdb) but cannot find it. I have even tried explicitly telling the debugger where to find the .pdb file via an initial command. I conclude there is some 'feature' of the way cdb is being spawned from within CodeBlocks that is causing the problem. If anyone has any insight into how this happens, please share!

Meantime, guess I need to debug this one-off project (that uses a precomplied DLL) with print statements and go back to MinGW...

pir

Navigation

[0] Message Index

[#] Next page

Go to full version