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.

GutterFormatter breaks clicking in gutter to create breakpoint

See original GitHub issue

Environment

  1. node -v: v12.16.1

  2. npm -v: 6.14.5

  3. npm ls jest or npm ls react-scripts (if you haven’t ejected): jest@26.0.1

  4. your vscode-jest settings if customized:

    • jest.pathToJest? default
    • jest.pathToConfig? default
    • anything else that you think might be relevant? see below
  5. Operating system: macOS 10.15.4

Prerequisite

  • are you able to run jest test from command line? yes
  • how do you run your tests from command line? (for example: npm run test or node_modules/.bin/jest) jest (with npx fallback)

Steps to Reproduce

Turn on GutterFormatter in vscode settings Try clicking in the gutter to turn on/off a breakpoint

Expected Behavior

Breakpoint is toggled on/off for that line

Actual Behavior

Nothing happens. Breakpoint not toggled.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
markcarrollcommented, Nov 4, 2020

Sorry @connectdotz I missed your question back when you asked.

I like the gutter formatted because it doesn’t get in the way the same as the default one. With the default formatted I have to keep toggling coverage off when I am starting new code and then have to turn it on again later. When a file has little to no tests and coverage is on, it is very hard to read the contents of the file using the built in Dark+ theme.

The gutter formatter is nice in that it hows coverage in a more subtle but still useful manner.

I hear you on the gutter issue though and yes, the breakpoint on/off thing is a real problem.

Maybe if we could make the default formatter more subtle that would do the trick.

0reactions
stefaneidellothcommented, Nov 18, 2022

The bug of non working break points is still there. You should remove the GutterFormatter if you cannot fix that. The customization of line cutter works as workaround for me. Maybe use less annoying appearance as a default.

I use Darcula/PyCharm theme and following settings for the uncovered lines:

.vscode/settings.json

{
"jest.coverageColors": {
      "uncovered": "rgba(35,35,35, 0.5)",
      "partially-covered": "rgba(255,215,0, 0.04)",
}
}

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Breakpoint set/unset in gutter" event in extension while not ...
Today, all breakpoints are sent only when the debugger is launched. However, I want to be able to apply breakpoints as soon as...
Read more >
VScode-jest: The Optimal Flow for Jest Based Testing in VS ...
Jest - Visual Studio Marketplace & click "Install". ... GutterFormatter: render coverage status in the gutter as well as the overview ruler.
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