News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

What debugger to use from C::B for MSVC compiled project ?

Started by eranon, June 10, 2012, 12:02:56 PM

Previous topic - Next topic

eranon

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 ?
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]

oBFusCATed

Quote from: eanon on June 10, 2012, 12:02:56 PM
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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

eranon

Quote from: oBFusCATed on June 10, 2012, 12:41:57 PM
Quote from: eanon on June 10, 2012, 12:02:56 PM
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 :'(
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]

stahta01

Quote from: eanon on June 10, 2012, 02:17:02 PM
Quote from: oBFusCATed on June 10, 2012, 12:41:57 PM
Quote from: eanon on June 10, 2012, 12:02:56 PM
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.

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

eranon

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
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]

stahta01

Quote from: eanon on June 10, 2012, 05:18:30 PM
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

eranon

[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]

MortenMacFly

Quote from: eanon on June 11, 2012, 02:02:40 PM
Interesting : so, CDB could be binded with C::B ?
Yes. It is supported, but not to an extend as GDB.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

eranon

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]".
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: eanon on June 11, 2012, 11:37:54 PM
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"?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

eranon

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 ::)
[Independent dev. - wxWidgets 3.0.0 under "Win 7 Pro 64-bit, C::B SVN 9435 & wxSmith, TDM64-GCC 4.7 & MSVC9" + "OS X 10.8, FSF GCC 4.7 & C::B SVN 8909"]