-
Notifications
You must be signed in to change notification settings - Fork 58
Support file URLs for --experimental-modules #157
Comments
@roblourens just confirming that you think microsoft/vscode#45750 is directly related to this issue? It seems the case but just want your opinion |
Yes I am pretty sure it is |
@roblourens As I can see, breakpoints work in CJS file even with |
No immediate plans but do you know when they will be out from the flag or considered "stable"? |
This works on Node 10 (I used nvm): Open VS Code terminal and make sure you have Node 10:
.vscode/launch.json
DebugNow put a breakpoint in your code and press F5 to debug! |
When running Node with the
--experimental-modules
flag, it returns file paths as file URLs, not paths. We need to handle both formats.We can set breakpoints without the file: prefix, because the regex still matches the rest. On Windows, slashes would have to changed to forward slashes.
The text was updated successfully, but these errors were encountered: