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

Jest Debug Issue (w/ example repo) #60468

Closed
lukebarton opened this issue Oct 10, 2018 · 3 comments
Closed

Jest Debug Issue (w/ example repo) #60468

lukebarton opened this issue Oct 10, 2018 · 3 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues

Comments

@lukebarton
Copy link

lukebarton commented Oct 10, 2018

  • VSCode Version: Version 1.28.0 (1.28.0)
  • OS Version: OSX

Steps to Reproduce:

https://github.com/lukebarton/jest-vscode-debug-issue

  1. npm install
  2. Set breakpoint in index
  3. Start debugging via the included config
  4. Debugger breaks at end of file
    See gif

Does this issue occur when all extensions are disabled?: ### Yes

I've seen a few issues on GitHub & StackOverflow without code examples to reproduce this issue so I went ahead an created a barebones repo to help uncover the root of this problem.

@isidorn
Copy link
Contributor

isidorn commented Oct 10, 2018

Thanks for the repo.
You seem to be piggy backing on the node debug adapter as far as I see -> forwarding to @roblourens
@lukebarton what debug adapter stop events are you sending in this example?

@isidorn isidorn assigned roblourens and unassigned isidorn Oct 10, 2018
@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Oct 10, 2018
@lukebarton
Copy link
Author

I don't know enough about debugging to know the answer to your question. The debugger is launched via vscode with the included launch config (.vscode/launch.json), the breakpoint is set in the editor and I halted the debugger via the vscode debug toolbar.

It's worth pointing out, which may not have been clear from my gif, but if you reintroduce the linebreak I deleted, the debugger will fail again. The presence of the line seems to cause it to fail. I haven't investigated whether it's blank lines, total line count, or what.

@roblourens
Copy link
Member

roblourens commented Oct 10, 2018

See facebook/create-react-app#5319 and #60187

I don't know why this is just an issue recently, maybe some change in Jest

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

No branches or pull requests

3 participants