Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debugging DLL

0 views
Skip to first unread message

Bob Smith

unread,
Aug 20, 2004, 6:51:12 AM8/20/04
to
I have a DLL created using MFC and an application that uses it. I'm trying
to debug the DLL by running the application in debug mode, and setting
breakpoints in the DLL code, but it says "XXXX does not contain any
debugging information ... " when it definitely does! Any suggestions?


Stefan Pascal

unread,
Aug 20, 2004, 7:06:34 AM8/20/04
to
Use your DLL's project settings and set the "Executable for debug session"
to your application path. Then start the debug process. You can breakpoint
anywhere inside your DLL (as long as you're in debug build).
If you want to step into EXE's sources you should build it in debug mode
too.

Stefan

"Bob Smith" <garkho...@hotmail.com> wrote in message
news:cg4l33$oqo$1...@hamble.qinetiq.com...

Bob Smith

unread,
Aug 20, 2004, 8:02:05 AM8/20/04
to
If I do this the breakpoints don't get called - the code is executing
though. Strange ...

"Stefan Pascal" <stefan...@simbolsoft.XXX> wrote in message
news:Ow74PVqh...@tk2msftngp13.phx.gbl...

Stefan Pascal

unread,
Aug 20, 2004, 9:37:50 AM8/20/04
to
Check these (some of them obvious):
1. Debug build.
2. Right source file.
3. Is your program getting to that point.

Try to put a breakpoint on DllMain (or equivalent) - this one MUST be
called and your program should stop there.

Stefan

"Bob Smith" <garkho...@hotmail.com> wrote in message

news:cg4p8b$ui4$1...@hamble.qinetiq.com...

'behzad

unread,
Sep 11, 2004, 1:29:11 AM9/11/04
to
Before running the code, u can not set breakpoints. But just after your
program is running and the dll module is loaded, you can set breakpoints
anywhere you like.

Behzad

"Bob Smith" <garkho...@hotmail.com> wrote in message
news:cg4l33$oqo$1...@hamble.qinetiq.com...

0 new messages