|
From: Brian D. <br...@de...> - 2006-03-24 03:26:54
|
tSb wrote: > Is there any way to debug the targets of g++ with visual studio? I > mean I want to compile and link my programs by using mingw-make while > debug the applicatoins using Visual Studio? I think you'll need to be a little more specific about what you want to do. "Compile and link with make" is not very clear because "make" is just a program that invokes other programs, it does not do any compilation or linking. If you mean that you want to write a Makefile that calls the command line version of microsoft's compiler and linker to build the project, and then debug it in the IDE then that should work fine. If you mean that you want to actually compile your binary with gcc+binutils and then debug it in visual studio's IDE, then that will not work. Well, it will be possible but you won't get any source-level information, only raw x86 disassembly and hex offsets -- the same as you would get debugging a binary with no debug information. Gcc and visual studio use completely different and incomatible debug formats, so debugging a foreign binary will essentially be like having no debug information. If you're looking for a GUI debugger to use with gcc then I suggest insight and/or DDD. I particularly like insight (which is really still just the same gdb but with a different interface.) Brian |