MCPcopy Create free account
hub / github.com/Vector35/debugger / ExecuteScriptInput

Method ExecuteScriptInput

ui/debugadapterscriptingprovider.cpp:107–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106
107BNScriptingProviderExecuteResult DebugAdapterScriptingInstance::ExecuteScriptInput(const std::string& input)
108{
109 if (m_controller)
110 {
111 // The UI component adds a trailing '\n' to the input, which must be removed before we send it to the backend
112 auto trimmedInput = input;
113 trimmedInput.erase(trimmedInput.find_last_not_of('\n') + 1);
114 auto ret = m_controller->InvokeBackendCommand(trimmedInput);
115 Output(ret);
116 return SuccessfulScriptExecution;
117 }
118 return InvalidScriptInput;
119}
120
121
122BNScriptingProviderExecuteResult DebugAdapterScriptingInstance::ExecuteScriptInputFromFilename(

Callers

nothing calls this directly

Calls 1

InvokeBackendCommandMethod · 0.45

Tested by

no test coverage detected