Fix crash.

This commit is contained in:
Martín Lucas Golini
2025-01-16 19:07:00 -03:00
parent 45e9865169
commit 5396a12353

View File

@@ -1,4 +1,3 @@
#include "debuggerplugin.hpp"
#include "../../notificationcenter.hpp"
#include "../../projectbuild.hpp"
#include "../../terminalmanager.hpp"
@@ -8,6 +7,7 @@
#include "bussocket.hpp"
#include "bussocketprocess.hpp"
#include "dap/debuggerclientdap.hpp"
#include "debuggerplugin.hpp"
#include "models/breakpointsmodel.hpp"
#include "models/variablesmodel.hpp"
#include "statusdebuggercontroller.hpp"
@@ -1410,7 +1410,6 @@ void DebuggerPlugin::runConfig( const std::string& debugger, const std::string&
return;
}
auto args = configIt->args;
// needsToResolveInputs( args );
@@ -1775,6 +1774,9 @@ bool DebuggerPlugin::onMouseMove( UICodeEditor* editor, const Vector2i& position
mCurrentHover = range;
if ( !mDebugger )
return;
mDebugger->evaluate(
expression, "hover", mListener->getCurrentFrameId(),
[this, editor]( const std::string&, const std::optional<EvaluateInfo>& info ) {