Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: eranon on June 10, 2012, 12:02:56 pm
-
Hello. I've configured C::B with TDM-GCC and MSVC9 compilers. Of course, I've well seen that MS compiler is not supported in Code::Blocks and that DBG is inoperative with MSVC compiled app... So, how to debug a DEBUG target compiled with MSVC9 ? Is there a way or should I just forgot any DEBUG target with MSVC and build all my projects with GCC about DEBUG and MSVC about RELEASE only ? How do you do for your own projects ?
-
I've well seen that MS compiler is not supported in Code::Blocks
Why do you think so? What I've tried to compile with MS VC++ compiler have worked...
For the debugger there is some support, but it is very limited as MS doesn't provide debugger meant for integration in other IDEs.
What you need is Debugging Tools For Windows (CDB.exe is required), a nightly build of C::B and some playing around with the settings.
Generally if it is not a MS VC only problem I suggest to debug it with cb+gdb it will be a lot easier.
-
I've well seen that MS compiler is not supported in Code::Blocks
Why do you think so? What I've tried to compile with MS VC++ compiler have worked...
Oops :-X Sorry ! it was a typo ; certainly because I'm testing compilers since some days (so the word what blocked in my mind)... I wanted to say :
"I've well seen that MS debugger is not supported in Code::Blocks"
And, as you clearly say, Obfuscated, it's just because MS doesn't provide any standalone one :'(
-
I've well seen that MS compiler is not supported in Code::Blocks
Why do you think so? What I've tried to compile with MS VC++ compiler have worked...
Oops :-X Sorry ! it was a typo ; certainly because I'm testing compilers since some days (so the word what blocked in my mind)... I wanted to say :
"I've well seen that MS debugger is not supported in Code::Blocks"
And, as you clearly say, Obfuscated, it's just because MS doesn't provide any standalone one :'(
Please re-read.
This is false "And, as you clearly say, Obfuscated, it's just because MS doesn't provide any standalone one"
Tim S.
-
Effectively : I suppose you think about WinDbg as standalone MS debugger, while in my mind I didn't remember it exists other thing than the integrated Visual Studio debugger ;s
-
Effectively : I suppose you think about WinDbg as standalone MS debugger, while in my mind I didn't remember it exists other thing than the integrated Visual Studio debugger ;s
I think about CDB.exe as a command line debugger (NOTE: WinDbg != CDB.exe).
Tim S.
-
Interesting : so, CDB could be binded with C::B ?
-
Interesting : so, CDB could be binded with C::B ?
Yes. It is supported, but not to an extend as GDB.
-
OK, thanks Morten. So, how to add-it ? Should I add a specific plugin to support CDB from C::B ? I don't see any reference to it in "Settings / [Compiler|Debugger]".
-
Probably start with searching the forum...
-
I don't see any reference to it in "Settings / [Compiler|Debugger]".
You need to setup a debugger environment in Settings -> Debugger -> Create config -> setup executables -> Select the radio button "CDB" -> Make use of this config when debugging.
@oBFusCATed: I guess its a bit mis-leading that where you setup this config there is a label named "GDB debugger" in the tree. Maybe it should just be "Debugger"?
-
Or "GDB/CDB Debugger"
-
Or "GDB/CDB Debugger"
Yes, that would be more precise. Patch? ;-)
-
In svn...
-
OK, thanks to both of you. I'll take a try asap ; I'm on different fields at same time these days, it's the reason why of my delay of reaction ::)