Closed Bug 1555518 Opened 5 years ago Closed 5 years ago

[wasm] Debugger cannot stop or debug wasm files with maps

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(firefox69 fixed)

RESOLVED FIXED
Firefox 69
Tracking Status
firefox69 --- fixed

People

(Reporter: yury, Assigned: yury)

Details

Attachments

(1 file)

STR:

  1. Open https://yurydelendik.github.io/old-man-sandbox/fibdbg/fib2_o0.html
  2. Open debugger and refresh page (to see .wasm and .c files)
  3. In Sources, find and open .c file
  4. Place breakpoint at line 5 a = b;
  5. Refresh the page
  6. Optional
    a) Use "Jump to generated location"
    b) Then, use "Jump to original location"

Expected:

  • Debugger breaks at line 5
  • Stack shows "fib" function
  • To see original .wasm file and jump back to .c (see step 6)

Actual:

  • Stack and source editor does not show where it is paused
  • "Jump to original location" does not work
Assignee: nobody → ydelendik
  • Fixes expandFrames() to ensure the thread property is set
  • Refactors getSourceLocationFromMouseEvent to use fromEditorLine
  • Replaces dwarf_to_json (for proper DWARF conversion)
Priority: -- → P2
Pushed by ydelendik@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/95ffb38f6a64
Fixes original stack display for wasm files, and ref to original source. r=jlast
Pushed by ydelendik@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/70fa4fef28c6
Fixes original stack display for wasm files, and ref to original source. r=jlast
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 69
Flags: needinfo?(ydelendik)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: