Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: pitti platsch on December 17, 2006, 11:59:30 am

Title: How to debug a DLL?
Post by: pitti platsch on December 17, 2006, 11:59:30 am
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
Title: Re: How to debug a DLL?
Post by: MortenMacFly on December 17, 2006, 01:38:43 pm
As the title says, how can I debug a Win32-DLL? :(
You might experience the bug described here:
http://forums.codeblocks.org/index.php?topic=4368.msg37018#msg37018
There I have posted a partial work-around, too. This is under investigation currently.

pitti platsch
With regards, Schnatterrinchen... sorry... Morten. ;-)
Title: Re: How to debug a DLL?
Post by: pitti platsch on December 17, 2006, 03:25:33 pm
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?
Title: Re: How to debug a DLL?
Post by: MortenMacFly on December 17, 2006, 03:35:12 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.