Difference between revisions of "TDebuggerIntf"
From Free Pascal wiki
Jump to navigationJump to searchLine 82: | Line 82: | ||
==Development Hints== | ==Development Hints== | ||
+ | * it might be helpful to recompile DebuggerIntf package, adding the following Custom Options to the compiler options of the package | ||
+ | ::-dDBG_STATE | ||
+ | ::-dDBG_EVENTS | ||
+ | ::-dDBG_VERBOSE | ||
+ | ::-dDBG_WARNINGS | ||
+ | ::-dDBG_DATA_MONITORS | ||
+ | ::-dDBG_DISASSEMBLER | ||
+ | :these defines provide more logging output of TDebuggerIntf | ||
* it might be helpful to rebuild IDE adding the following defines into build Options: | * it might be helpful to rebuild IDE adding the following defines into build Options: | ||
− | ::-dVerboseDebugger | + | ::-dVerboseDebugger |
− | + | :'''VerboseDebugger''' logs messages debugging calls from IDE itself | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Debugging]] | [[Category:Debugging]] |
Revision as of 21:21, 23 October 2017
TDebuggerIntf is the base class of implementing a debugger as Lazarus-IDE plugin package. The package must have DebuggerIntf package as it's requirements. Any debugger plug-in must implement the class and register via RegisterDebugger (called at Register of registering unit).
Minimal Implementation
The following methods must be implemented for TDebbugerIntf
- GetSupportedCommands - returns the set of formats that a debugger can perform
- RequestCommand - the method actually performing commands. Only commands returned by GetSupportedCommands would be passed to this method
- Caption - the method return user-friendly name of the debugger
Methods
RequestCommand
The method should return false, if the command cannot be executed.
Debugger Commands
Command | Parameters |
---|---|
dcRun | no parameters |
dcPause | |
dcStop | |
dcStepOver | |
dcStepInto | |
dcStepOut | |
dcRunTo | |
dcJumpto | |
dcAttach | |
dcDetach | |
dcBreak | |
dcWatch | |
dcLocal | |
dcEvaluate | |
dcModify | |
dcEnvironment | |
dcSetStackFrame | |
dcDisassemble | |
dcStepOverInstr | |
dcStepIntoInstr | |
dcSendConsoleInput |
Development Hints
- it might be helpful to recompile DebuggerIntf package, adding the following Custom Options to the compiler options of the package
- -dDBG_STATE
- -dDBG_EVENTS
- -dDBG_VERBOSE
- -dDBG_WARNINGS
- -dDBG_DATA_MONITORS
- -dDBG_DISASSEMBLER
- these defines provide more logging output of TDebuggerIntf
- it might be helpful to rebuild IDE adding the following defines into build Options:
- -dVerboseDebugger
- VerboseDebugger logs messages debugging calls from IDE itself