question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Launch & Debug from VSCode

See original GitHub issue

Is it possible to create a launch.json file to launch and debug (set breakpoints) jest-puppeteer? I tried creating a launch file with /node_modules/jest/bin/jest.js with no success! Does anyone have a suggestion on how this can be done?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
laurentpayotcommented, Feb 13, 2020

Here is my launch.json file (allowing colors inside debug console):

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Jest",
            "program": "${workspaceFolder}/node_modules/jest/bin/jest",
            "args": [
                "--config=${workspaceFolder}/jest.config.js",
                "--detectOpenHandles",
                "--colors"
            ],
            "internalConsoleOptions": "openOnSessionStart",
            "skipFiles": [
                "<node_internals>/**"
            ]
        }
    ]
}
0reactions
SilvanTheumacommented, Feb 13, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to Debugging in Visual Studio Code
Debugging that "just works". Run a sample Node.js app. Use a launch.json configuration file. Single file debugging. Set a breakpoint.
Read more >
Configure launch.json for C/C++ debugging in Visual Studio ...
Visual Studio Code generates a launch.json (under a .vscode folder in your project) with almost all of the required information. To get started...
Read more >
Debug Browser Apps using Visual Studio Code
The simplest way to debug a webpage is through the Debug: Open Link command found in the Command Palette (Ctrl+Shift+P). When you run...
Read more >
Run and Debug Java in Visual Studio Code
Another way to start debugging is to select Run Java or Debug Java menu from the top editor title bar. EditorMenu. Run from...
Read more >
Debug Node.js Apps using Visual Studio Code
You can trigger IntelliSense (Ctrl+Space) in your launch.json file to see launch configuration snippets for commonly used Node.js debugging scenarios. Launch ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found