monitor() and debug() commands don't place breakpoints correctly #7907

Closed
fflorent opened this Issue Jun 7, 2015 · 2 comments

Projects

None yet

2 participants

@fflorent
Member
fflorent commented Jun 7, 2015

STR:

  1. Open this page: https://www.mozilla.org/en-US/firefox/nightly/firstrun/?oldversion=38.0
  2. Enable Firebug, the Console and the Script panel
  3. Enter this command: debug(Tabzilla.open)
  4. Go to the Script panel and the "Breakpoints" side-panel

The breakpoint is actually set at the line of the function definition, not at the line of the first instruction.

Florent

@fflorent fflorent self-assigned this Jun 7, 2015
@fflorent
Member
fflorent commented Jun 7, 2015

PR created. Honza, could you review please?

Also note that I work on a similar bug for the DevTools here: https://bugzilla.mozilla.org/show_bug.cgi?id=1164880

Florent

@janodvarko
Member

Merged into the master, closing.

Honza

@janodvarko janodvarko closed this Jun 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment