-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Debugging with Chrome as described in Documentation does not work #3270
Comments
@codepunkt I might be looking for something like this: https://developers.google.com/web/tools/chrome-devtools/javascript/ You must use |
@marcelorl Thanks for the advice! There's quite a few ways to debug my application - the one outlined in your answer is one of them. My problem is not debugging in general, but explicitly debugging in VSCode using the VSCode Chrome Debugger extension as described in the User Guide. |
@codepunkt I just followed your instructions and set a breakpoint in I know this can be confusing, but it's a simple timing problem, as our debugger attaches after Chrome has executed the code. We are working on enabling "break-on-load" breakpoints in https://github.com/Microsoft/vscode-chrome-debug/issues/445, which will make this timing issue transparent. (cc @gaearon) |
Can we also add a sentence to our docs about this? |
I've added a section about this in our README, and I don't want to replicate general FAQs into framework specific docs, but we could update the react docs to have a pointer? |
Opened here #3399 |
Is this a bug report?
Yes.
Can you also reproduce the problem with npm 4.x?
Yes.
Which terms did you search for in User Guide?
Debugging in the Editor
Environment
[email protected]
[email protected]
[email protected]
windows 10
[email protected]
[email protected]
Steps to Reproduce
create-react-app chromeDebuggingTest
cd chromeDebuggingTest
npm i
npm run start
.vscode
folder with alaunch.json
according to the aExpected Behavior
Breakpoint being hit in Chrome
Actual Behavior
The text was updated successfully, but these errors were encountered: