- automatically enable com_enableDebuggerServer when launching the debugger from a game which does not have the debugger server running

This commit is contained in:
HarrievG 2021-07-05 10:09:28 +02:00
parent fe162e626f
commit 6e8b6a6773

View file

@ -1146,7 +1146,14 @@ Com_ScriptDebugger_f
static void Com_ScriptDebugger_f( const idCmdArgs &args ) { static void Com_ScriptDebugger_f( const idCmdArgs &args ) {
// Make sure it wasnt on the command line // Make sure it wasnt on the command line
if ( !( com_editors & EDITOR_DEBUGGER ) ) { if ( !( com_editors & EDITOR_DEBUGGER ) ) {
DebuggerClientLaunch();
//start debugger server if needed
if ( !com_enableDebuggerServer.GetBool() )
com_enableDebuggerServer.SetBool( true );
//start debugger client.
DebuggerClientLaunch();
} }
} }