Allow PID to be set by variables, e.g. shell
This commit is contained in:
parent
8d4ec3f53a
commit
74eb94fe53
1 changed files with 4 additions and 2 deletions
|
|
@ -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':
|
||||||
pid = utils.AskForInput( 'Enter PID to attach to: ' )
|
prop = atttach_config[ 'pidProperty' ]
|
||||||
launch_config[ atttach_config[ 'pidProperty' ] ] = pid
|
if prop not in launch_config:
|
||||||
|
pid = utils.AskForInput( 'Enter PID to attach to: ' )
|
||||||
|
launch_config[ prop ] = pid
|
||||||
return
|
return
|
||||||
elif atttach_config[ 'pidSelect' ] == 'none':
|
elif atttach_config[ 'pidSelect' ] == 'none':
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue