Allow PID to be set by variables, e.g. shell

This commit is contained in:
Ben Jackson 2020-01-17 17:45:18 +00:00
commit 74eb94fe53

View file

@ -605,8 +605,10 @@ class DebugSession( object ):
self._outputView.RunJobWithOutput( 'Remote', cmd ) self._outputView.RunJobWithOutput( 'Remote', cmd )
else: else:
if atttach_config[ 'pidSelect' ] == 'ask': if atttach_config[ 'pidSelect' ] == 'ask':
prop = atttach_config[ 'pidProperty' ]
if prop not in launch_config:
pid = utils.AskForInput( 'Enter PID to attach to: ' ) pid = utils.AskForInput( 'Enter PID to attach to: ' )
launch_config[ atttach_config[ 'pidProperty' ] ] = pid launch_config[ prop ] = pid
return return
elif atttach_config[ 'pidSelect' ] == 'none': elif atttach_config[ 'pidSelect' ] == 'none':
return return