Author Topic: How to debug a DLL?  (Read 4341 times)

Offline pitti platsch

  • Single posting newcomer
  • *
  • Posts: 8
    • Notepad++ MenuSearch Plugin
How to debug a DLL?
« 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
Work with Notepad++? Then you might like my NppMenuSearch plugin: http://sourceforge.net/projects/nppmenusearch/

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How to debug a DLL?
« Reply #1 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. ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline pitti platsch

  • Single posting newcomer
  • *
  • Posts: 8
    • Notepad++ MenuSearch Plugin
Re: How to debug a DLL?
« Reply #2 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?
Work with Notepad++? Then you might like my NppMenuSearch plugin: http://sourceforge.net/projects/nppmenusearch/

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How to debug a DLL?
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ