@@ -467,7 +467,7 @@ let testCounter = 0;
467467 await Promise . all ( [
468468 debugClient . configurationSequence ( ) ,
469469 setBreakpointFilter ( ) ,
470- debugClient . launch ( buildLauncArgs ( 'sampleWithAssertEx.py' , false ) ) ,
470+ debugClient . launch ( buildLaunchArgs ( 'sampleWithAssertEx.py' , false ) ) ,
471471 waitToStopDueToException ( ) ,
472472 debugClient . assertStoppedLocation ( 'exception' , pauseLocation )
473473 ] ) ;
@@ -612,5 +612,27 @@ let testCounter = 0;
612612 debugClient . waitForEvent ( 'terminated' )
613613 ] ) ;
614614 } ) ;
615+ test ( 'Test Logpoints' , async function ( ) {
616+ if ( debuggerType !== 'pythonExperimental' ) {
617+ return this . skip ( ) ;
618+ }
619+ const breakpointLocation = { path : path . join ( debugFilesPath , 'logMessage.py' ) , line : 4 } ;
620+ const breakpointArgs : DebugProtocol . SetBreakpointsArguments = {
621+ lines : [ breakpointLocation . line ] ,
622+ breakpoints : [ { line : breakpointLocation . line , logMessage : 'Sum of {a} and {b} is 3' } ] ,
623+ source : { path : breakpointLocation . path }
624+ } ;
625+ await Promise . all ( [
626+ debugClient . launch ( buildLaunchArgs ( 'logMessage.py' , false ) ) ,
627+ debugClient . waitForEvent ( 'initialized' )
628+ . then ( ( ) => debugClient . setBreakpointsRequest ( breakpointArgs ) )
629+ . then ( ( ) => debugClient . configurationDoneRequest ( ) )
630+ . then ( ( ) => debugClient . threadsRequest ( ) ) ,
631+ debugClient . waitForEvent ( 'thread' )
632+ . then ( ( ) => debugClient . threadsRequest ( ) ) ,
633+ debugClient . assertOutput ( 'stdout' , 'Sum of 1 and 2 is 3' ) ,
634+ debugClient . waitForEvent ( 'terminated' )
635+ ] ) ;
636+ } ) ;
615637 } ) ;
616638} ) ;
0 commit comments