Highlight current debugged line.

Hid debugger panel if other panel is opened.
Silence the debugger by default.
This commit is contained in:
Martín Lucas Golini
2025-02-05 01:02:46 -03:00
parent 52fb2a311c
commit eae433796e
15 changed files with 84 additions and 21 deletions

View File

@@ -77,6 +77,8 @@ class DebuggerPlugin : public PluginBase {
void initStatusDebuggerController();
bool isSilent() const { return mSilence; }
protected:
friend class DebuggerClientListener;
@@ -84,6 +86,7 @@ class DebuggerPlugin : public PluginBase {
bool mFetchRegisters{ false };
bool mFetchGlobals{ false };
bool mChangingBreakpoint{ false };
bool mSilence{ true };
std::string mProjectPath;
std::vector<DapTool> mDaps;
@@ -207,6 +210,9 @@ class DebuggerPlugin : public PluginBase {
const Float& lineHeight, const Float& lineNumberWidth,
const int& lineNumberDigits, const Float& fontSize ) override;
void drawBeforeLineText( UICodeEditor* editor, const Int64& index, Vector2f position,
const Float& /*fontSize*/, const Float& lineHeight ) override;
bool setBreakpoint( UICodeEditor* editor, Uint32 lineNumber );
bool setBreakpoint( TextDocument* doc, Uint32 lineNumber );