Replaces drvfs mountpoints with Windows pathnames in Error stacktraces when using node under the Windows Subsystem for Linux
Перейти к файлу
microsoft-github-policy-service[bot] 0d4667f9bd
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2022-11-28 19:11:07 +00:00
.gitignore Initial stab 2018-07-20 15:01:16 -07:00
LICENSE MIT 2018-07-20 15:28:14 -07:00
README.md Create README.md 2018-07-20 15:26:15 -07:00
SECURITY.md Microsoft mandatory file 2022-08-29 14:01:16 +00:00
package-lock.json Initial stab 2018-07-20 15:01:16 -07:00
package.json Initial stab 2018-07-20 15:01:16 -07:00
wsl-drvfs-stack-formatter.js Initial stab 2018-07-20 15:01:16 -07:00

README.md

What

Replaces drvfs mountpoints with Windows pathnames in Error stacktraces when using node under the Windows Subsystem for Linux

Why 🤔

I use https://github.com/Microsoft/vscode and develop under WSL. When I see stacktraces, I'd like to be able to click to jump to a UGH:\dir\file.js:line spot.

How

Error.prepareStackTrace = require('wsl-drvfs-stack-formatter');

But

If you're not under WSL, this is a no-op, so you don't need to include it conditionally.

If you already have another formatter, you can safely place this one after it, as it can cope with an existing one that returns a string.