From 6e8b6a6773f392a9ded0d4c3eb967b5122cd0be5 Mon Sep 17 00:00:00 2001 From: HarrievG Date: Mon, 5 Jul 2021 10:09:28 +0200 Subject: [PATCH] - automatically enable com_enableDebuggerServer when launching the debugger from a game which does not have the debugger server running --- neo/framework/Common.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/neo/framework/Common.cpp b/neo/framework/Common.cpp index fbf2fbe2..0319f764 100644 --- a/neo/framework/Common.cpp +++ b/neo/framework/Common.cpp @@ -1146,7 +1146,14 @@ Com_ScriptDebugger_f static void Com_ScriptDebugger_f( const idCmdArgs &args ) { // Make sure it wasnt on the command line if ( !( com_editors & EDITOR_DEBUGGER ) ) { - DebuggerClientLaunch(); + + //start debugger server if needed + if ( !com_enableDebuggerServer.GetBool() ) + com_enableDebuggerServer.SetBool( true ); + + //start debugger client. + DebuggerClientLaunch(); + } }