Experience-Monks / Experience-Monks/devtool

Breakpoints in VM scripts

Open
#95 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.7k
Forks
147
PR merge metrics
No merged PRs in 30d

Description

I've noticed VM scripts do not have their breakpoints triggered. Do you have any insight on this?

Probably due to the debugger protocol not being supported in VM, right?

For example, try pasting this in the console:

``` js
vm = require('vm')
vm.runInContext(
'console.log("before debugger");\n' +
'debugger;\n' +
'console.log("after debugger");\n' +
'//# sourceURL=wat.js',
vm.createContext({
console: console
})
)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.