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: debugger getting triggered on warnings (but setting not enabled) #19303

Closed
mrcoles opened this issue Jul 9, 2020 · 4 comments
Closed

Bug: debugger getting triggered on warnings (but setting not enabled) #19303

mrcoles opened this issue Jul 9, 2020 · 4 comments

Comments

@mrcoles
Copy link

mrcoles commented Jul 9, 2020

React version: 16.9.5

Steps To Reproduce

  1. Open the dev console in Firefox (78.0.1) that is running React Developer Tools (from revision a5b4492 on 7/9/2020)
  2. Don’t change any settings from the defaults
  3. Do something that triggers a warning, like running stripe.js in test mode on http
  4. The debugger gets triggered even though “Trigger on warn” is not set and neither is debugger on exceptions in the console settings

(see screenshots at bottom)

The current behavior

The debugger gets triggered

The expected behavior

The debugger should not get triggered

Workaround

Refreshing the page did nothing.

I toggled the value on, closed the dialog, opened it again and toggled it off. That fixed it for me.

Screenshots

Screen Shot 2020-07-09 at 7 25 25 PM

Screen Shot 2020-07-09 at 7 26 09 PM

@mrcoles mrcoles added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Jul 9, 2020
@runofthemillgeek
Copy link

Happening to me as well on FF 79.0b5 (Dev Edition) with React DevTools 4.8.0-a5b449295.

I'm guessing the following is the reason? Shouldn't this be return false at the end for the default return value?

export function getBreakOnConsoleErrors(): boolean {
try {
const raw = localStorageGetItem(
LOCAL_STORAGE_SHOULD_BREAK_ON_CONSOLE_ERRORS,
);
if (raw != null) {
return JSON.parse(raw);
}
} catch (error) {}
return true;
}

@zmyjs
Copy link

zmyjs commented Jul 10, 2020

image

I also faced this problem.

Firefox React DevTools v4.8.0

@kotoshii
Copy link

изображение
изображение

Same thing
FF, React DevTools 4.8.0

@gaearon
Copy link
Collaborator

gaearon commented Jul 10, 2020

As a temporary workaround, try setting this setting to true, closing the window, and then setting it back to false. We're tracking this in #19308 but I can't figure out how to update the FF addon (the store doesn't show any) so we'll need to wait for @bvaughn's help. I'm closing so we consolidate the discussion in #19308.

@gaearon gaearon closed this as completed Jul 10, 2020
@bvaughn bvaughn added Component: Developer Tools Resolution: Duplicate and removed Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug labels Jul 10, 2020
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

6 participants