Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: APEXnow on August 20, 2005, 04:46:29 pm

Title: Debugging DLL projects
Post by: APEXnow 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.
Title: Re: Debugging DLL projects
Post by: tiwag 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]
Title: Re: Debugging DLL projects
Post by: APEXnow 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.
Title: Re: Debugging DLL projects
Post by: dwmcqueen 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?
Title: Re: Debugging DLL projects
Post by: severach 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.
Title: Re: Debugging DLL projects
Post by: dje 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