More improvements to debugger.

This commit is contained in:
Martín Lucas Golini
2025-01-08 01:51:38 -03:00
parent 1f496978a1
commit 403005301d
21 changed files with 446 additions and 143 deletions

View File

@@ -3,6 +3,7 @@
#include "../plugin.hpp"
#include "../pluginmanager.hpp"
#include "debuggerclientlistener.hpp"
#include "models/breakpointsmodel.hpp"
using namespace EE::UI::Models;
using namespace EE::UI;
@@ -68,6 +69,7 @@ class DebuggerPlugin : public PluginBase {
UIPushButton* mRunButton{ nullptr };
UnorderedMap<std::string, UnorderedSet<SourceBreakpointStateful>> mBreakpoints;
UnorderedSet<std::string> mPendingBreakpoints;
std::shared_ptr<BreakpointsModel> mBreakpointsModel;
Mutex mBreakpointsMutex;
DebuggerPlugin( PluginManager* pluginManager, bool sync );
@@ -115,6 +117,12 @@ class DebuggerPlugin : public PluginBase {
bool breakpointToggleEnabled( TextDocument* doc, Uint32 lineNumber );
bool setBreakpoint( const std::string& doc, Uint32 lineNumber );
bool breakpointToggleEnabled( const std::string& doc, Uint32 lineNumber );
bool breakpointSetEnabled( const std::string& doc, Uint32 lineNumber, bool enabled );
bool onMouseDown( UICodeEditor*, const Vector2i&, const Uint32& flags ) override;
bool isSupportedByAnyDebugger( const std::string& language );