Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot debug on VSCode 1.88 #1136

Closed
lamuertepeluda opened this issue Apr 8, 2024 · 5 comments
Closed

[BUG] Cannot debug on VSCode 1.88 #1136

lamuertepeluda opened this issue Apr 8, 2024 · 5 comments

Comments

@lamuertepeluda
Copy link

Describe the bug

Debugging tests seem not to work anymore in VSCode 1.88, macOS 14.4.1 M2 Pro Chipset

Perhaps related to microsoft/vscode#209785

To Reproduce
Steps to reproduce the behavior:

  1. Select a test file (file explorer or text explorer or test code)
  2. Add some breakpoints
  3. Click on 'debug test'
  4. The test execution runs without respecting the breakpoints

Expected behavior

Debugger stops at test breakpoints

I
Prerequisite

  • are you able to run jest from the command line? yes
  • where do you run jest CLI from? root directory
  • how do you run your tests from the command line? (e.g., "npm run test" or "node_modules/.bin/jest") -> BOTH

Additional context

See VSCode issue, see also firsttris/vscode-jest-runner#362 (similar extension, same problem)


The fastest (and the most fun) way to resolve the issue is to submit a pull request yourself. If you are interested, please check out the contribution guide, we look forward to seeing your PR...

@webhype
Copy link

webhype commented Apr 8, 2024

Similar (or same) problem here, Debugger attached no longer appears in the terminal pane as expected, and the little debugger control window (allowing to pause / single step / exit) disappears shortly after initiating a "debug" session. After that the program executes without any debugging help. Had to downgrade to 1.87.2. Not fixed in 1.89 either. Same hardware config as OP.

@KyleLehtinenDev
Copy link

KyleLehtinenDev commented Apr 8, 2024

I also encountered this problem on 1.88 and had to downgrade to 1.87.2 as @webhype mentioned to get debugging back for my typescript apps.

Edit:
Actually, my issue may relate to using NODE_OPTIONS=--dns-result-order=ipv4first as part of an attempt to get testcontainers working with rancher-desktop...

@connectdotz
Copy link
Collaborator

The underlying issue (microsoft/vscode#209785) is closed, and the fix has been released in vscode 1.88.1.

@lamuertepeluda, @webhype, @KyleLehtinenDev, could you guys update the vscode to verify if that resolved your issue?

@lamuertepeluda
Copy link
Author

The underlying issue (microsoft/vscode#209785) is closed, and the fix has been released in vscode 1.88.1.

@lamuertepeluda, @webhype, @KyleLehtinenDev, could you guys update the vscode to verify if that resolved your issue?

I updated to 1.88.1 and I am now able to use the debugger again! Thanks

@connectdotz
Copy link
Collaborator

thanks @lamuertepeluda. closing this issue as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants