-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Closed
Copy link
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.experimentalIssues and PRs related to experimental features.Issues and PRs related to experimental features.inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocol
Description
- Version: 9.6.1
- Platform: Windows 64-bit
- Subsystem: inspector
Hi, I try to run debugger for es modules using --inspect-brk
flag, but after I attached Chrome Dev Tools I receive this error
internal/loader/ModuleJob.js:31
initWrapper(this.module.instantiate, this.module);
^
Error: linking error, not in local cache
at link (internal/loader/ModuleJob.js:31:9)
at <anonymous>
I create two small files to test debuuger:
index.mjs
import {add} from './calc';
console.log(add(5, 6));
calc.mjs
export function add (a, b) {
return a + b;
}
I try to run code with this command node --experimental-modules --inspect-brk index.mjs
.
I updated my Chrome to version 64.0.3282.186.
I try this with the same result on Chrome Canary 66.0.3352.0.
I do not have any breakpoints set up but after I attached Dev Tools, code is always break on internal/async_hooks.js:157
and after I resume script execution I receive above error.
dandv and Legends
Metadata
Metadata
Assignees
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.experimentalIssues and PRs related to experimental features.Issues and PRs related to experimental features.inspectorIssues and PRs related to the V8 inspector protocolIssues and PRs related to the V8 inspector protocol