tinyd
tinyd

Reputation: 952

Debugging Visual Studio builds from Eclipse

I'm just starting out on a cross-platform (Windows, Linux, OS X) C++ project, and we've decided to use Scons for our build system and Eclipse as our IDE. I've figured out how to trigger Scons to do a Visual C++ build from Eclipse, and for errors etc. to get reflected in Eclipse, so all good so far. However, what would be really nice is if we could use Eclipse for debugging as well, but Eclipse's various gdb debugging options can't read the debug symbols that VC puts into the build. So does anyone know a way round this, or (as I suspect) will I have to use Visual Studio for debugging?

Obviously this is by no means a bad solution, but using a single IDE would be even better!

Thanks in advance for any help....

Upvotes: 7

Views: 6149

Answers (2)

Preet Sangha
Preet Sangha

Reputation: 65496

Would you not be better building you app with gcc for all the platforms? Then you can debug and compile on all of them easily and the hopefully the same way.

Upvotes: 0

AlexC
AlexC

Reputation: 1415

Visual C++ creates PDB files for its own symbols that map into the binary. The only provision for other debuggers is to C7 format and hope that is enough for gdb.

Go to Properties | C/C++ | General | Debug Information = C7 Compatible (instead of the default PDB). Command line is /Z7 instead of other /Z? (which can be PDB or PDB with continue).

Upvotes: 4

Related Questions