Open Bug 1359535 Opened 3 years ago Updated 7 months ago

Debugging xml files indicates current line is one or two lines from where it actually is

Categories

(DevTools :: Debugger, defect, P5)

defect

Tracking

(Not tracked)

People

(Reporter: standard8, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: regression)

Attachments

(1 file)

On latest mozilla-central, I'm trying to debug urlbarBindings.xml.

STR

1) Put a breakpoint in at https://dxr.mozilla.org/mozilla-central/rev/abdcc8dfc28397b95338245390e12c56658ad182/browser/base/content/urlbarBindings.xml#380
(or a debugger statement just above that line before starting up).
2) Type something in the url bar.
3) Middle click on one of the entries.

=> The debugger stops on the breakpoint.

Expected Results

=> The debugger shows the current line to match where it actually is.

Actual Results

=> The debugger shows the current line to be one or two below where it actually is (verified by looking at the variables in scope, and how far it jumps).
Priority: -- → P2
Product: Firefox → DevTools
Attached image image.png

I can still reproduce the problem.

Couple of comments:

  1. It's different line in urlbarBindings.xhml - 655 (not 380)
  2. Breakpoints don't work in that file at all. I can even create them at non-breakable lines (see the attached screenshot)
  3. You need to use debugger; keyword to break in that file
  4. The execution line (highlighted line) is off by 1 (see the attached screenshot)

I am keeping this as P2

Honza

I am changing the priority to P5. XUL/XBL is being removed from Firefox code base and we are not planning to improve support for it. We are happy to review contributed patch.

Honza

Severity: major → normal
Priority: P2 → P5
Blocks: dbg-control
You need to log in before you can comment on or make changes to this bug.