firefox-debugadapter
v2.12.0
Published
Debug adapter for Firefox
Downloads
739
Readme
Debug Adapter for Firefox
This package implements the Debug Adapter Protocol for Firefox. It is part of the VS Code Debugger for Firefox but can be used by other IDEs as well to integrate with Firefox's debugger.
Custom requests and events
In addition to the standard Debug Adapter Protocol, the debug adapter implements some custom requests and events:
Requests
The following custom requests can be sent to the debug adapter:
toggleSkippingFile
: toggle whether a particular file (identified by its URL) is skipped (aka blackboxed) during debuggingreloadAddon
: reload the WebExtension that is being debuggedsetPopupAutohide
: set the popup auto-hide flag (config keyui.popup.disable_autohide
, WebExtension debugging only)togglePopupAutohide
: toggle the popup auto-hide flagsetActiveEventBreakpoints
: set event listener breakpoints
Events
The debug adapter sends these custom events:
popupAutohide
: contains the initial state of the popup auto-hide flag (WebExtension debugging only)threadStarted
: sent when a thread-like actor (for a Tab, Worker or WebExtension) is startedthreadExited
: sent when a thread-like actor exitednewSource
: sent when Firefox loaded a new source fileremoveSources
: sent when a thread-like actor discards its previously loaded sources, i.e. when a Tab is navigated to a new URLunknownSource
: sent when the user tries to set a breakpoint in a file that could not be mapped to a URL loaded by FirefoxavailableEvents
: contains the events for which event listener breakpoints can be set
The event body types are defined here. The source events may be replaced by the LoadedSourceEvent in the future.