diff --git a/shell/launchconfiguration.cpp b/shell/launchconfiguration.cpp --- a/shell/launchconfiguration.cpp +++ b/shell/launchconfiguration.cpp @@ -127,7 +127,18 @@ } } - //No launcher configured, lets just try with the first one in the list and hope it works + // No launcher configured, if it's debug mode, prefer GDB if available. + if( mode == "debug" ) + { + foreach( ILauncher* l, type()->launchers() ) + { + if( l->supportedModes().contains( mode ) && l->id() == "gdb" ) + { + return l->id(); + } + } + } + // Otherwise, lets just try with the first one in the list and hope it works foreach( ILauncher* l, type()->launchers() ) { if( l->supportedModes().contains( mode ) )