React: Bug: Unexpected debugger statement in DevTools (solved)

Created on 10 Jul 2020  路  16Comments  路  Source: facebook/react

Looks like you forgot about the debugger inside the react_devtools_backend.js.

React dev tools version: 4.8.0

Steps To Reproduce

  1. Update (or install) the latest version of devtools
  2. Open devtools
  3. The code will be stopped on the debugger inside react_devtools_backend.js

IMAGE 2020-07-10 13:43:52

The current behavior

If I open devtools with react dev tools extension it will stop every time on debugger inside react_devtools_backend.js

The expected behavior

It doesn't seem like it should be happening 馃槂

Developer Tools Bug

Most helpful comment

Here's a step-by-step instruction for how to work around it while the fix is pending review:

  1. Press the Settings gear icon in the upper right corner

Screenshot 2020-07-10 at 14 39 06

  1. Open the Debugging tab

Screenshot 2020-07-10 at 14 39 13

  1. Put the checkmark next to Break on Warnings
    Screenshot 2020-07-10 at 14 39 20

  2. Remove the checkmark next to Break on Warnings

Screenshot 2020-07-10 at 14 39 25

Now reload the page and you shouldn't be bothered by it.

All 16 comments

Same here, I've had to disable the extension because of this... :smile:

Same for me.

Looks bad.

Same here

Yes, but see the comment above it. :-) It is intentional, but this option should have been off by default.

As a temporary solution you can "blackbox" script in Chrome Dev Tools:

image

You should also be able to go to Components tab, press Settings gear, add checkbox to Break on Warning, then do this again, and remove the checkbox as a temporary workaround.

I'll keep it open until we cut a release

Thanks 馃檶

I've submitted a fix to Chrome addons. It should appear there in a few hours. If it doesn't work after updating to 4.8.1, try to clear your local storage (localStorage.clear()).

I can't figure out how to submit it to FF store because something in our process has changed. So @bvaughn will be able to help us out there when he wakes up. :-)

Here's a step-by-step instruction for how to work around it while the fix is pending review:

  1. Press the Settings gear icon in the upper right corner

Screenshot 2020-07-10 at 14 39 06

  1. Open the Debugging tab

Screenshot 2020-07-10 at 14 39 13

  1. Put the checkmark next to Break on Warnings
    Screenshot 2020-07-10 at 14 39 20

  2. Remove the checkmark next to Break on Warnings

Screenshot 2020-07-10 at 14 39 25

Now reload the page and you shouldn't be bothered by it.

Please refrain from "same" comments unless you have something new to say. They are not helpful and obscure the workaround (https://github.com/facebook/react/issues/19308#issuecomment-656682924).

Update:

  • The fix has been published to NPM as 4.81
  • The updated extension (with fix) is live for Firefox
  • The updated extension is pending for Chrome
  • Edge is still providing the previous version 4.7 (but an updated 4.8.1 is also pending for review)

We'll keep this issue open until the fix has been deployed on Chrome, but I'm going to lock it to prevent +1 馃槃

4.8.1 is live in Chrome store now too, so I'm going to close this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

varghesep picture varghesep  路  3Comments

zpao picture zpao  路  3Comments

zpao picture zpao  路  3Comments

trusktr picture trusktr  路  3Comments

huxiaoqi567 picture huxiaoqi567  路  3Comments