Debugging Tools for Windows |
The GetCommand and GetCommandWide methods return the command string that is executed when a breakpoint is triggered.
HRESULT
IDebugBreakpoint::GetCommand(
OUT OPTIONAL PSTR Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG CommandSize
);
HRESULT
IDebugBreakpoint2::GetCommandWide(
OUT OPTIONAL PWSTR Buffer,
IN ULONG BufferSize,
OUT OPTIONAL PULONG CommandSize
);
#ifdef UNICODE
#define GetCommandT GetCommandWide
#else
#define GetCommandT GetCommand
#endif
This method might also return error values. For more information about possible return values, see Return Values.
The command string is a list of debugger commands that are separated by semicolons. These commands are executed every time that the breakpoint is triggered. The commands are executed before the engine informs any event callbacks that the breakpoint has been triggered.
The GetParameters method also returns the size of the breakpoint's command, CommandSize.
For more information about breakpoint properties, see Controlling Breakpoint Flags and Parameters.
Versions: GetCommand is available in all versions of IDebugBreakpoint. GetCommandWide is available in IDebugBreakpoint2 and later versions.
Headers: Defined in Dbgeng.h. Include Dbgeng.h.