This repository was archived by the owner on Feb 1, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -770,16 +770,19 @@ function createRepl(inspector) {
770770 const breakType = reason === 'other' ? 'break' : reason ;
771771 const script = knownScripts [ scriptId ] ;
772772 const scriptUrl = script ? getRelativePath ( script . url ) : '[unknown]' ;
773- print ( `${ breakType } in ${ scriptUrl } :${ lineNumber + 1 } ` ) ;
773+
774+ const header = `${ breakType } in ${ scriptUrl } :${ lineNumber + 1 } ` ;
774775
775776 inspector . suspendReplWhile ( ( ) =>
776777 Promise . all ( [ formatWatchers ( true ) , selectedFrame . list ( 2 ) ] )
777778 . then ( ( [ watcherList , context ] ) => {
778779 if ( watcherList ) {
779780 return `${ watcherList } \n${ inspect ( context ) } ` ;
780781 }
781- return context ;
782- } ) . then ( print ) ) ;
782+ return inspect ( context ) ;
783+ } ) . then ( ( breakContext ) => {
784+ print ( `${ header } \n${ breakContext } ` ) ;
785+ } ) ) ;
783786 } ) ;
784787
785788 function handleResumed ( ) {
You can’t perform that action at this time.
0 commit comments