@@ -20,17 +20,16 @@ import { DebuggerTypeName, PTVSD_PATH } from '../../client/debugger/Common/const
2020import { AttachRequestArguments , DebugOptions } from '../../client/debugger/Common/Contracts' ;
2121import { IServiceContainer } from '../../client/ioc/types' ;
2222import { PYTHON_PATH , sleep } from '../common' ;
23- import { initialize , IS_MULTI_ROOT_TEST , TEST_DEBUGGER } from '../initialize' ;
23+ import { IS_MULTI_ROOT_TEST , TEST_DEBUGGER } from '../initialize' ;
2424import { continueDebugging , createDebugAdapter } from './utils' ;
2525
2626const fileToDebug = path . join ( EXTENSION_ROOT_DIR , 'src' , 'testMultiRootWkspc' , 'workspace5' , 'remoteDebugger-start-with-ptvsd.py' ) ;
2727
2828suite ( 'Attach Debugger' , ( ) => {
2929 let debugClient : DebugClient ;
3030 let proc : ChildProcess ;
31- suiteSetup ( initialize ) ;
3231
33- setup ( async function ( ) {
32+ setup ( async function ( ) {
3433 if ( ! IS_MULTI_ROOT_TEST || ! TEST_DEBUGGER ) {
3534 this . skip ( ) ;
3635 }
@@ -58,7 +57,7 @@ suite('Attach Debugger', () => {
5857 // Set the path for PTVSD to be picked up.
5958 // tslint:disable-next-line:no-string-literal
6059 env [ 'PYTHONPATH' ] = PTVSD_PATH ;
61- const pythonArgs = [ '-m' , 'ptvsd' , '--server' , '--port' , `${ port } ` , '--file' , fileToDebug . fileToCommandArgument ( ) ] ;
60+ const pythonArgs = [ '-m' , 'ptvsd' , '--server' , '--wait' , '-- port', `${ port } ` , '--file' , fileToDebug . fileToCommandArgument ( ) ] ;
6261 proc = spawn ( PYTHON_PATH , pythonArgs , { env : env , cwd : path . dirname ( fileToDebug ) } ) ;
6362 await sleep ( 3000 ) ;
6463
0 commit comments