Closed Bug 1663758 Opened 5 years ago Closed 5 years ago

Debugging xpcshell-tests fails to display breakpoint correctly, fails to hit it a second time

Categories

(DevTools :: Debugger, defect)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: standard8, Unassigned)

Details

Attachments

(1 file)

Attached file xpcshell-test log

STR:

  1. Set up an xpcshell-test where you have either two debugger; statements or one where you'll hit it twice.
  2. Start the test with --jsdebugger
  3. Hook up the debugger via about:debugging etc.

Actual Results

The debugger pauses on the first debugger; statement but does not show the normal line marker. On the console there is an error (see attached log).

Attempting to continue to run the test to hit the next statement fails - the test just runs through to the end.

Expected Results.

The debugger correctly displays and pauses in both cases.

Can you share the specific test where you experience this? I tried to add 2 debugger statements to a simple xpcshell test (https://searchfox.org/mozilla-central/source/devtools/client/aboutdebugging/test/xpcshell/test_extensions_path.js), and I could hit both debugger statements.

I used the latest central, on macos, if relevant.

Flags: needinfo?(standard8)

Unfortunately I can't reproduce this either now :(

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(standard8)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: