Skip to content

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

License

Notifications You must be signed in to change notification settings

standardgalactic/wsl-drvfs-stack-formatter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%