NEWBIE: How to insert DLL break point?

  • Thread starter Thread starter NewAlias
  • Start date Start date
N

NewAlias

Hi
Keyords: .NET 2003 VC Win32 DLL __stdcall

I want to mark a break point in my DLL Function.

Already did:
Projetc | <project name> properties | Configuration properties |
Debugging |
Action.Attach = Yes
Debuggers.Debugger Type = Mixed

I marked the break point but it does not break, there is a '?'.


Thanks
 
NewAlias said:
I want to mark a break point in my DLL Function.

There are several ways to go. Since you seem to be having trouble (my guess
is there is some confusion as to the executable that needs to be atached by
the debugger) I'd suggest adding the line

DebugBreak();

immediately above the point in your DLL source where you require the
debugger. Recompile and relink your DLL. Run the application that loads it.
You should get a confirmation dialog that allows you to debug or terminate
the process.

Regards,
Will
 
Back
Top