laverdet / isolated-vm

Secure & isolated JS environments for nodejs
ISC License
2.19k stars 154 forks source link

How to debug #370

Closed Mankvis closed 1 year ago

Mankvis commented 1 year ago

const script = await isolate.compileScript('debugger;\nconsole.log("Isolated-VM debugging");'); I hope that when I run, the code will automatically break at the position of the debugger

laverdet commented 1 year ago

One might ask why a debugger statement in Safari does not trigger the debugger in Chrome. The platforms are isolated.