Giter Site home page Giter Site logo

robin-hartmann / bug-vscode-node-debug2-breakpoints Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 42 KB

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

License: MIT License

JavaScript 39.51% TypeScript 60.49%
mwe vscode bug debugger ts-node nodejs breakpoint typescript

bug-vscode-node-debug2-breakpoints's Introduction

๐Ÿž 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.

bug-vscode-node-debug2-breakpoints's People

Contributors

robin-hartmann avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.