-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Breakpoint gets moved down when Chrome debugger is launched #7327
Labels
Comments
arnavb
changed the title
Breakpoint get moved down when Chrome debugger is launched
Breakpoint gets moved down when Chrome debugger is launched
Jul 5, 2019
Related to #6296 maybe? |
Can you try the latest release and see if this has improved? If not please open a new issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In one of my components (my
TodoList
component), I'm trying to set a breakpoint on a line where two variables are destructured fromthis.state
in a form submit callback. The relevant code for the component is below:My VSCode launch config is the following (
launch.json
):Here is a video illustrating what happens with my breakpoints: https://drive.google.com/file/d/1hTlCNSEY0eASSdyrOku1sC0yRPXnWhsB/view?usp=sharing
(The video may not be visible initially because it's being processed, but it should be downloadable).
Did you try recovering your dependencies?
Yes
npm -v
output:6.10.0
Which terms did you search for in User Guide?
Breakpoints, debugging, which both led to this and then from there I found this, which doesn't help me all that much.
Environment
Steps to reproduce
git clone https:/arnavb/react-todo-app
code -r react-todo-app
.launch.json
code from above into.vscode/launch.json
(Create it if it doesn't exist yet).npm start
in the integrated terminal. Don't start Chrome debugger yet.src/TodoList.js
and set a breakpoint on line 23 (const { todoValue, items } = this.state;
).Expected behavior
The breakpoint wouldn't move and I would be able to hit it when I click the
Add
button in my todo list.Actual behavior
The breakpoint is moved down to line 25. When debugging, line 23 is just skipped.
Video demo: https://drive.google.com/file/d/1hTlCNSEY0eASSdyrOku1sC0yRPXnWhsB/view?usp=sharing
Reproducible demo
(I tried making the example smaller, but somehow the issue always got fixed when some lines were moved around or removed. This leads me to wonder whether this is some sort of source map issue)
https:/arnavb/react-todo-app
The text was updated successfully, but these errors were encountered: