File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,8 @@ class NodeInspector {
203
203
process . once ( 'SIGTERM' , exitCodeZero ) ;
204
204
process . once ( 'SIGHUP' , exitCodeZero ) ;
205
205
206
- PromisePrototypeCatch ( PromisePrototypeThen ( this . run ( ) , ( ) => {
207
- const repl = startRepl ( ) ;
206
+ PromisePrototypeCatch ( PromisePrototypeThen ( this . run ( ) , async ( ) => {
207
+ const repl = await startRepl ( ) ;
208
208
this . repl = repl ;
209
209
this . repl . on ( 'exit' , exitCodeZero ) ;
210
210
this . paused = false ;
Original file line number Diff line number Diff line change @@ -1077,14 +1077,17 @@ function createRepl(inspector) {
1077
1077
. then ( ( ) => Runtime . runIfWaitingForDebugger ( ) ) ;
1078
1078
}
1079
1079
1080
- return function startRepl ( ) {
1080
+ return async function startRepl ( ) {
1081
1081
inspector . client . on ( 'close' , ( ) => {
1082
1082
resetOnStart ( ) ;
1083
1083
} ) ;
1084
1084
inspector . client . on ( 'ready' , ( ) => {
1085
1085
initAfterStart ( ) ;
1086
1086
} ) ;
1087
1087
1088
+ // Init once for the initial connection
1089
+ await initAfterStart ( ) ;
1090
+
1088
1091
const replOptions = {
1089
1092
prompt : 'debug> ' ,
1090
1093
input : inspector . stdin ,
@@ -1103,9 +1106,6 @@ function createRepl(inspector) {
1103
1106
repl . emit ( 'SIGINT' ) ;
1104
1107
} ) ;
1105
1108
1106
- // Init once for the initial connection
1107
- initAfterStart ( ) ;
1108
-
1109
1109
return repl ;
1110
1110
} ;
1111
1111
}
You can’t perform that action at this time.
0 commit comments