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 )
else:
if atttach_config[ 'pidSelect' ] == 'ask':
pid = utils.AskForInput( 'Enter PID to attach to: ' )
launch_config[ atttach_config[ 'pidProperty' ] ] = pid
prop = atttach_config[ 'pidProperty' ]
if prop not in launch_config:
pid = utils.AskForInput( 'Enter PID to attach to: ' )
launch_config[ prop ] = pid
return
elif atttach_config[ 'pidSelect' ] == 'none':
return