Coder Social home page Coder Social logo

Comments (3)

tonysneed avatar tonysneed commented on May 20, 2024 2

@mattmazzola This launch.json file works for me. I'm able to set breakpoints and hit them.

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Tests",
      "type": "node",
      "request": "launch",
      "program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
      "sourceMaps": true,
      "runtimeArgs": [
        "-i"
      ],
      "env": {
        "NODE_ENV": "development"
      },
      "outFiles": [
        "${workspaceRoot}/dist/**/*"
      ],
      "cwd": "${workspaceRoot}"
    }
  ]
}

The weird thing is that I have to press F5 twice, because the first time the debugger exits without hitting the breakpoint. But it hits the breakpoint the second time through. 😄

from typescript-library-starter.

mattmazzola avatar mattmazzola commented on May 20, 2024 1

I had opened similar issues on VSCode and Jest repos.
Two things, it only works with legacy protocol (not inspect), and it does not work with Node 7 or 8 due to breaking changes in the vmContext stuff.

Root Issue:
nodejs/node#7593

See related issues:
microsoft/vscode#28007
jestjs/jest#3748

from typescript-library-starter.

alexjoverm avatar alexjoverm commented on May 20, 2024

Hi @marcantoineveilleux. I'm sorry but I don't think this issue belongs to this repository.

If you can set breakpoints with ts-jest, you should be able to do it here. So I suggest better ask in stackoverflow about it ot open an issue in ts-jest.

Nonetheless, I'll keep this issue open some days in case someone knows the answer

from typescript-library-starter.

Related Issues (20)

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.