PDA

View Full Version : Breakpoint at callback function inside DLL


Gustavo
06-07-2004, 01:13 PM
Hello,

How can a set a breakpoint inside a DLL.
The executable loads this DLL with LoadLibrary and then it sets a global CBT hook, pointer to the hook procedure is inside the DLL, so I want to set a breakpoint at this callback procedure.

I have already tried to set it using F2 but the execution never stops.
Is it possible to set a breakpoint at a callback function that is inside this DLL?
if yes, what am I doing wrong?

Thank You

Lord_Looser
06-08-2004, 02:00 AM
You can find module’s entry point inside the “Executable module” window. Set a hardware breakpoint on it.

Gustavo
06-20-2004, 05:32 PM
the breakpoints work well when the dll is loaded but after the executable calls SetWindowsHookEx API function they dont work.
could the problem be that it doesnot stop because the system calls this hook procedure.

thanks