Click to See Complete Forum and Search --> : how to debug from exe


gamecocks
February 14th, 2005, 10:18 AM
into dll? I build exe and dll. Thanks.

Mick
February 14th, 2005, 10:30 AM
into dll? I build exe and dll. Thanks.

Open your project workspace and set a breakpoint in your dll. You need to get the symbols [.pdb] loaded up during the debugger init so your breakpoints are valid at that point. So addyour dll under Project settings->Debug->Additional Modules in your .exe project. And make sure the .dll is in the load path [you can add it as a working directory if you wish]

There are a number of other ways such as using DebugBreak(...)/Breaking into the running process/Using the registry setting BreakOnDllLoad etc etc. The above should get you going.

gamecocks
February 14th, 2005, 10:56 AM
Thank you for your help. how to know symbols [.pdb] loaded up during the debugger init? I can't find Additional Modules under debug tab.

Mick
February 14th, 2005, 11:03 AM
Thank you for your help. how to know symbols [.pdb] loaded up during the debugger init? I can't find Additional Modules under debug tab.

In your debug output window you will see a line for each module saying "loaded symbols for xxx"

Depends on your debugger...

What compliler/debugger are you using?