Open Jack-Works opened 1 year ago
Functional duplicate of https://github.com/microsoft/vscode-js-debug/issues/1646
@connor4312 I'm using the latest nightly version and still have this problem. are you sure it's the same problem?
Can you confirm what version of nightly you're running? THere was an issue in our pipelines that prevented it getting published for a little while
Can you confirm what version of nightly you're running? THere was an issue in our pipelines that prevented it getting published for a little while
I tried v2023.4.2817
I tried chrome devtools and it can bind breakpoint.
ok, I figured out why. It's about the case-insensitive file system (macOS default).
I started the program with TypeScript/built/local
, but I use typescript/
to develop, therefore ${workspaceFolder}/built/local
becomes typescript/built/local
and mismatched with the started program.
cc @connor4312 can you open the issue? although I have already fixed the problem by making the file casting consistent.
I think I just hit this bug (also on MacOS) in a much simpler case without any source maps or transpilation, just a simple node foo.mjs
command.
Node ran the file (and debugger
statements broke into the debugger) but breakpoints weren't bound.
Here's my config, in case it's helpful:
{
"name": "validstrings.mjs",
"request": "launch",
"type": "node",
"runtimeArgs": ["polyfill/test/validstrings.mjs"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"autoAttachChildProcesses": true,
"skipFiles": [
"<node_internals>/**",
"**/node_modules/**"
]
},
Once I fixed the filename to the actual "validStrings.mjs" (capital S) then it worked great.
Describe the bug Cannot find source map.
To Reproduce Steps to reproduce the behavior:
npx hereby watch-min
launch.json
Start VSCode and then attach to the language service.
Log File
vscode-debugadapter-cff4305c.json.gz
I found there is something strange happened in the logfile:
Version: 1.77.3 (Universal) Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710 Date: 2023-04-12T09:19:37.325Z Electron: 19.1.11 Chromium: 102.0.5005.196 Node.js: 16.14.2 V8: 10.2.154.26-electron.0 OS: Darwin arm64 22.4.0 Sandboxed: No
JavaScript Debugger (Nightly) v2023.4.1317