News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to debug a DLL?

Started by pitti platsch, December 17, 2006, 11:59:30 AM

Previous topic - Next topic

pitti platsch

As the title says, how can I debug a Win32-DLL? :(
I had no problem debugging a executable, but when I put Breakpoint into my DLL-code and activate the option "Produce debugging symbols [-g]" in the compiler settings window, the code does not stop at the breakpoint.
I even have copied the host application into the folder where my DLL is produced.

thx

pitti platsch
Work with Notepad++? Then you might like my NppMenuSearch plugin: [url="http://sourceforge.net/projects/nppmenusearch/"]http://sourceforge.net/projects/nppmenusearch/[/url]

MortenMacFly

Quote from: pitti platsch on December 17, 2006, 11:59:30 AM
As the title says, how can I debug a Win32-DLL? :(
You might experience the bug described here:
http://forums.next.codeblocks.org/index.php?topic=4368.msg37018#msg37018
There I have posted a partial work-around, too. This is under investigation currently.

Quote from: pitti platsch on December 17, 2006, 11:59:30 AM
pitti platsch
With regards, Schnatterrinchen... sorry... Morten. ;-)
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]

pitti platsch

Oh, ok I think I have understood the workaround, but I don't want to compile the changed debuggerstate.cpp for own use because then I would not be able to use later nighly builds.
Instead, I wait until the problem is fixed officially.

pitti platsch  :D

Ps: Why was this else-block included in debuggerstate.cpp, if it does not work?
Work with Notepad++? Then you might like my NppMenuSearch plugin: [url="http://sourceforge.net/projects/nppmenusearch/"]http://sourceforge.net/projects/nppmenusearch/[/url]

MortenMacFly

Quote from: pitti platsch on December 17, 2006, 03:25:33 PM
Ps: Why was this else-block included in debuggerstate.cpp, if it does not work?
That's exactly the question. To be honest: I don't know. It actually *should* work and it is a good solution to use relative path's there, but the debugger seems not to recognise it for some obscure reason.
With regards, Morten.
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]