Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

🐞 Minimal working example for reproducing a bug when debugging in ts-node with Visual Studio Code

License

Notifications You must be signed in to change notification settings

robin-hartmann/bug-vscode-node-debug2-breakpoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐞 bug-vscode-node-debug2-breakpoints

Minimal working example for reproducing a bug when debugging in ts-node with Visual Studio Code

πŸ› οΈ Development

These instructions will get you a copy of this project up and running on your local machine for development and testing purposes.

πŸ“‹ Prerequisites

  • Node.js - JavaScript run-time environment
  • Visual Studio Code - Code editor redefined and optimized for building and debugging modern web and cloud applications

πŸš€ Getting Started

Follow these steps to reproduce the bug:

  1. Clone this project
  2. Open the project's root folder in VS Code
  3. Run npm i in the terminal to install all dependencies
  4. Set a breakpoint in src/lib.ts on line 4
  5. Switch to the Run view using the side menu
  6. Select the run configuration Launch with ts-node
  7. Press F5 to start debugging

Now the debugger should stop at the specified breakpoint, but it doesn't.

🚧 Workaround

  1. Install the VS Code extension JavaScript Debugger (Nightly) (ms-vscode.js-debug-nightly)
  2. In .vscode\settings.json set debug.node.useV3 to true
  3. Press F5 to start debugging

Now the debugger does in fact stop at the specified breakpoint.

🧰 Built With

  • TypeScript - A typed superset of JavaScript that compiles to plain JavaScript
  • ts-node - TypeScript execution and REPL for node.js

πŸ‘¨β€πŸ’» Authors

πŸ“ƒ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

🐞 Minimal working example for reproducing a bug when debugging in ts-node with Visual Studio Code

Topics

Resources

License

Stars

Watchers

Forks

Packages