File SystemRuntime & Debugging
Debugging Bun with the VS Code extension
Bun speaks the WebKit Inspector Protocol , so you can debug your code with an interactive debugger.
Re-map import paths
Bun reads the paths field in your tsconfig.json to re-write import paths. This is useful for aliasing package names or avoiding long relative paths.
Debugging Bun with the web debugger
Bun speaks the WebKit Inspector Protocol . To enable debugging when running code with Bun, use the --inspect flag. Consider the following web server.