Manual python test

This commit is contained in:
Ben Jackson 2019-08-04 15:20:54 +01:00
commit dcc2c6c365
2 changed files with 17 additions and 3 deletions

View file

@ -61,7 +61,7 @@ class DebugSession( object ):
self._configuration = None self._configuration = None
self._init_complete = False self._init_complete = False
self._launch_complete = False self._launch_complete = False
self._on_init_complete_handlers = None self._on_init_complete_handlers = []
self._server_capabilities = {} self._server_capabilities = {}
def Start( self, launch_variables = {} ): def Start( self, launch_variables = {} ):
@ -671,8 +671,7 @@ class DebugSession( object ):
if self._launch_complete and self._init_complete: if self._launch_complete and self._init_complete:
for h in self._on_init_complete_handlers: for h in self._on_init_complete_handlers:
h() h()
self._on_init_complete_handlers = []
self._on_init_complete_handlers = None
self._stackTraceView.LoadThreads( True ) self._stackTraceView.LoadThreads( True )

View file

@ -0,0 +1,15 @@
{
"configurations": {
"run": {
"adapter": "vscode-python",
"configuration": {
"request": "launch",
"type": "python",
"cwd": "${workspaceRoot}",
"program": "${file}",
"stopOnEntry": true,
"console": "integratedTerminal"
}
}
}
}