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.

can not debug es6

See original GitHub issue

config Jest Command or set ENV is useful for Run, but not for Debug.

export NODE_OPTIONS=--experimental-vm-modules
NODE_OPTIONS=--experimental-vm-modules npx jest

image image image image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
jjm340commented, May 11, 2022

I would love to see this fixed as well as I can’t debug in certain scenarios because I need to run a custom NPM script in order to have all the settings line up.

3reactions
Feijocommented, May 25, 2022

@firsttris it works!

    "jestrunner.debugOptions": {
        "program": "node_modules/jest/bin/jest.js",
        "env": {
            "NODE_OPTIONS": "--experimental-vm-modules"
        }
    },
    "jestrunner.jestCommand": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging ES6 in VS Code - GitHub Gist
The key to debugging in ES6 is to add sourcemaps files separately from the transpiled code. So after setting up babel on your...
Read more >
How to debug ES6 NodeJS with VSCode | by katopz - Medium
“How to debug ES6 NodeJS with VSCode” is published by katopz. ... No more Unexpected token import, wrong line breakpoint, unreadable transpiled.
Read more >
vscode debug ES6 application - node.js - Stack Overflow
Here's how to get VSCode debugger to work with Babel 6+:. First install dependencies locally: $ npm install babel-cli --save $ npm install ......
Read more >
ES6 - Debugging - Tutorialspoint
A debugger is an application that places all aspects of script execution under the control of the programmer. Debuggers provide fine-grained control over...
Read more >
How to debug code in ES6 ? - GeeksforGeeks
In this article, we are going to learn how to debug a code in ES6. Debugging is the process of finding and resolving...
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