I have installed Eclipse CDT and CDT Visual C++ Support (from the Yoxos Marketplace).
This lets me compiled and run a C++ application, however, I cannot debug it.
So, I have installed a gdb windows binary using the mingw distribution. Now, when I try to debug, the following message is displayed in the console – No symbol table is loaded. Use the “file” command.
My uneducated guess is that gdb cannot debug binaries produced by the Visual C++ compiler.
My question is – how do I debug C++ code in eclipse built using the Visual C++ toolchain?
My environment:
- Windows 7 64 bits
- Eclipse Indigo (the latest version at the moment)
- Visual Studio 2010, hence Visual C++ ver 10
- GNU gdb (GDB) 7.3.1
- I do not know how to get the version of CDT, but I have this jar – org.eclipse.cdt_8.0.0.201109151620.jar, so I guess the version is 8.0
Thanks.
P.S.
Moving to the MinGW g++ compiler is off scope for this question, so please – do not suggest it as the answer.
As far as I know you can’t debug Visual C++ applications using gdb which is only supported by CDT plug-in.
Debugger for Visual C++ toolchain is called CDB and you have to search for the tool that can use it. For sure Visual C++ IDE (even from Express Edition) can be use to debug application that are compiled under Eclipse+CDT. I think that also some nightly builds of CodeBlocks IDE can cooperate with CDB.