debugger icon indicating copy to clipboard operation
debugger copied to clipboard

TypeError: bpClient is null bundle.js:20705:4 when disabling breakpoint

Open magicp-github opened this issue 10 years ago • 3 comments

Steps to Reproduce:

  1. Start Nightly (or Dev Edition)
  2. Go to about:home
  3. Open Debugger (Ctrl+Shift+S)
  4. Open a source about:home > (index)
  5. Add new breakpoint on line 17
  6. Click "Disable Breakpoints" button or check-off the breakpoint in breakpoint list

Expected Results: "Disable Breakpoints" does not work. And also the following error is displayed in console. bpclient-is-null

TypeError: bpClient is null bundle.js:20705:4

Actural Results: "Disable Breakpoints" works well and no error in console.

magicp-github avatar Nov 23 '16 19:11 magicp-github

Odd that lines other than 17 don't behave this way...

I tracked this down to here: https://github.com/devtools-html/debugger.html/blob/master/packages/devtools-local-toolbox/src/clients/firefox/commands.js#L80-L84

It seems the remove() function is failing for some reason.

clarkbw avatar Nov 23 '16 23:11 clarkbw

Oops. mistyped below;;

Expected Results: > Actual Results:

Actual Results: > Expected Results:

magicp-github avatar Nov 24 '16 00:11 magicp-github

I'm not able to reproduce this on Nightly anymore. The disable breakpoint works just fine on line 17 now. Please reopen this if we're able to reproduce again.

clarkbw avatar Dec 21 '16 18:12 clarkbw