| 105 | |
| 106 | |
| 107 | BNScriptingProviderExecuteResult 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 | |
| 122 | BNScriptingProviderExecuteResult DebugAdapterScriptingInstance::ExecuteScriptInputFromFilename( |
nothing calls this directly
no test coverage detected