Skip to content

Broken example for vm.runInDebugContext(code) #4862

@MylesBorins

Description

@MylesBorins

The current example fails

const Debug = vm.runInDebugContext('Debug');
Debug.scripts().forEach(function(script) { console.log(script.name); });

The error I receive is

Debug.scripts().forEach(function(script) {
      ^
illegal access

Will do more research and post in this thread

Metadata

Metadata

Assignees

Labels

docIssues and PRs related to the documentations.vmIssues and PRs related to the vm subsystem.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions