Author Topic: Debugging DLL projects  (Read 5190 times)

APEXnow

  • Guest
Debugging DLL projects
« on: August 20, 2005, 04:46:29 pm »
I've tried looking for alternative related questions on the forum here but I could not find the relavent answer.  I've compiled my DLL project for debugging but I cannot seem to find the location under Code::blocks where I set the Host EXE to debug my DLL source code.  Do I need to pass command line options directly to GDB, or is there a dialog or options screen for setting the Host EXE and commandline arguments for debugging.

Many thanks.

Paul.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Debugging DLL projects
« Reply #1 on: August 20, 2005, 04:52:14 pm »
it's under "Project->Set program's arguments..."

or look at this sample workspace (another approach)


[attachment deleted by admin]

APEXnow

  • Guest
Re: Debugging DLL projects
« Reply #2 on: August 20, 2005, 05:01:26 pm »
Argghh!! So obvious now that you mention it :D.  That's great stuff, thanks alot.  Can't believe I missed it.

Paul.

Offline dwmcqueen

  • Multiple posting newcomer
  • *
  • Posts: 56
Re: Debugging DLL projects
« Reply #3 on: July 06, 2007, 05:56:32 pm »
I have a large external program that can call cutom dlls.  I want to debug dlls I create that are called from this external program (third party).  Will the above method accomplish this?

Offline severach

  • Multiple posting newcomer
  • *
  • Posts: 44
Re: Debugging DLL projects
« Reply #4 on: July 10, 2007, 07:50:55 am »
Pelles-C and one of the many Microsoft Visual C++ IDE's can interrupt a DLL loaded by a host program that does not have debugging information. I have yet to find another debugger that can do this.

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Debugging DLL projects
« Reply #5 on: July 10, 2007, 10:03:03 am »
Hi !

I have a large external program that can call cutom dlls.  I want to debug dlls I create that are called from this external program (third party).  Will the above method accomplish this?

Create a project
Build your dll with debug info
Go to "Project\Set program's arguments"
Specify host application and required arguments
Put breakpoints and run debugger

Dje