C ++: how to debug a C ++ application compiled using the Microsoft Visual C ++ dashboard in eclipse?

I installed support for Eclipse CDT and Visual C ++ CDT (from Market Yoxos).

This allows me to compile and run a C ++ application, however I cannot debug it.

So, I installed the windows gdb binary using the mingw distribution. Now, when I try to debug, the following message is displayed in the console: Character table is not loaded. Use the file command.

My uneducated guess is that gdb cannot debug executables created by the Visual C ++ compiler.

My question is: how do I debug C ++ code in eclipse created using the Visual C ++ toolchain?

My environment:

  • Windows 7 64 bit
  • Eclipse Indigo (latest version at the moment)
  • Visual Studio 2010, therefore Visual C ++ ver 10
  • GNU gdb (GDB) 7.3.1
  • I don't know how to get the CDT version, but I have this jar - org.eclipse.cdt_8.0.0.201109151620.jar, so I think version 8.0

Thank.

PS

Switching to the MinGW g ++ compiler is not suitable for this question, so please do not offer it as an answer.

+11
c ++ eclipse
Jan 11 2018-12-12T00:
source share
2 answers

As far as I know, you cannot debug Visual C ++ applications using gdb, which is only supported by the CDT plugin.

The debugger for the Visual C ++ toolchain is called CDB, and you need to look for a tool that can use it. Surely the Visual C ++ IDE (even from Express Edition) can be used to debug an application compiled under Eclipse + CDT. I think that some CodeBlocks IDE nightly builds can also work with CDB.

+2
Jan 11 2018-12-12T00: 00Z
source share

Please follow this https://bugs.eclipse.org/bugs/show_bug.cgi?id=162108

Summary: As of the last comment (Doug Schaefer 2012-03-13 10:49:27 EDT) in this error, there seem to be plans to integrate this, but it still does not work.

+5
Apr 10 2018-12-12T00:
source share



All Articles