commit
7e29143a6f
1 changed files with 8 additions and 2 deletions
|
|
@ -120,7 +120,8 @@ class DebugSession( object ):
|
||||||
|
|
||||||
if 'configuration' in launch_variables:
|
if 'configuration' in launch_variables:
|
||||||
configuration_name = launch_variables.pop( 'configuration' )
|
configuration_name = launch_variables.pop( 'configuration' )
|
||||||
elif len( configurations ) == 1:
|
elif ( len( configurations ) == 1 and
|
||||||
|
next( iter( configurations.values() ) ).get( "autoselect", True ) ):
|
||||||
configuration_name = next( iter( configurations.keys() ) )
|
configuration_name = next( iter( configurations.keys() ) )
|
||||||
else:
|
else:
|
||||||
configuration_name = utils.SelectFromList(
|
configuration_name = utils.SelectFromList(
|
||||||
|
|
@ -591,7 +592,8 @@ class DebugSession( object ):
|
||||||
|
|
||||||
arguments = {}
|
arguments = {}
|
||||||
if self._server_capabilities.get( 'supportTerminateDebuggee' ):
|
if self._server_capabilities.get( 'supportTerminateDebuggee' ):
|
||||||
arguments[ 'terminateDebugee' ] = True
|
# If we attached, we should _not_ terminate the debuggee
|
||||||
|
arguments[ 'terminateDebuggee' ] = False
|
||||||
|
|
||||||
self._connection.DoRequest( handler, {
|
self._connection.DoRequest( handler, {
|
||||||
'command': 'disconnect',
|
'command': 'disconnect',
|
||||||
|
|
@ -843,6 +845,10 @@ class DebugSession( object ):
|
||||||
self._stackTraceView.LoadThreads( True )
|
self._stackTraceView.LoadThreads( True )
|
||||||
|
|
||||||
|
|
||||||
|
def OnEvent_loadedSource( self, msg ):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def OnEvent_capabilities( self, msg ):
|
def OnEvent_capabilities( self, msg ):
|
||||||
self._server_capabilities.update(
|
self._server_capabilities.update(
|
||||||
( msg.get( 'body' ) or {} ).get( 'capabilities' ) or {} )
|
( msg.get( 'body' ) or {} ).get( 'capabilities' ) or {} )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue