diff --git a/src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp b/src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp index ef9749919..d9ee8983f 100644 --- a/src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp +++ b/src/tools/ecode/plugins/debugger/dap/debuggerclientdap.cpp @@ -222,7 +222,7 @@ void DebuggerClientDap::requestInitialize( const SessionId& sessionId, { DAP_ADAPTER_ID, "ecode-dap" }, { DAP_LINES_START_AT1, mProtocol.linesStartAt1 }, { DAP_COLUMNS_START_AT2, mProtocol.columnsStartAt1 }, - { DAP_PATH, ( mProtocol.pathFormatURI ? DAP_URI : DAP_PATH ) }, + { DAP_PATH_FORMAT, ( mProtocol.pathFormatURI ? DAP_URI : DAP_PATH ) }, { DAP_SUPPORTS_VARIABLE_TYPE, true }, { DAP_SUPPORTS_VARIABLE_PAGING, false }, { DAP_SUPPORTS_RUN_IN_TERMINAL_REQUEST, true }, diff --git a/src/tools/ecode/plugins/debugger/debuggerplugin.cpp b/src/tools/ecode/plugins/debugger/debuggerplugin.cpp index 5458b2538..57d6e369a 100644 --- a/src/tools/ecode/plugins/debugger/debuggerplugin.cpp +++ b/src/tools/ecode/plugins/debugger/debuggerplugin.cpp @@ -1303,7 +1303,7 @@ void DebuggerPlugin::replaceKeysInJson( j = std::move( argsArr ); continue; } else if ( runConfig && val == KEY_ENV && buildConfig ) { - j = nlohmann::json{}; + j = nlohmann::json::object(); for ( const auto& env : buildConfig->envs() ) j[env.first] = env.second; } else if ( val == KEY_STOPONENTRY ) {