Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit 7729442

Browse files
author
Jan Krems
committed
feat: Add pause command
1 parent 36887c6 commit 7729442

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

examples/myscript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ console.log('initial thing');
44
debugger;
55
const x = process.argv[2] || 'world';
66
setInterval(() => {
7-
debugger;
7+
// debugger;
88
console.log(x);
99
}, 1000);
1010
console.log('hello');

lib/node-inspect.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,10 @@ function createCommandContext(inspector) {
536536
return Debugger.stepOut();
537537
},
538538

539+
get pause() {
540+
return Debugger.pause();
541+
},
542+
539543
// List source code
540544
list(delta = 5) {
541545
const { scriptId, lineNumber, columnNumber } = currentSourceLocation;

0 commit comments

Comments
 (0)