Log in

View Full Version : Breakpoint at callback function inside DLL


Gustavo
June 7th, 2004, 12:13
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
June 8th, 2004, 01:00
You can find module’s entry point inside the “Executable module” window. Set a hardware breakpoint on it.

Gustavo
June 20th, 2004, 16:32
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