clj-chrome-devtools.commands.dom-debugger

DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.

get-event-listeners

(get-event-listeners)(get-event-listeners {:as params, :keys [object-id depth pierce]})(get-event-listeners connection {:as params, :keys [object-id depth pierce]})

Returns event listeners of the given object.

Parameters map keys:

Key Description
:object-id Identifier of the object to return listeners for.
:depth The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the

entire subtree or provide an integer larger than 0. (optional) :pierce | Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled. (optional)

Return map keys:

Key Description
:listeners Array of relevant listeners.

remove-dom-breakpoint

(remove-dom-breakpoint)(remove-dom-breakpoint {:as params, :keys [node-id type]})(remove-dom-breakpoint connection {:as params, :keys [node-id type]})

Removes DOM breakpoint that was set using setDOMBreakpoint.

Parameters map keys:

Key Description
:node-id Identifier of the node to remove breakpoint from.
:type Type of the breakpoint to remove.

remove-event-listener-breakpoint

(remove-event-listener-breakpoint)(remove-event-listener-breakpoint {:as params, :keys [event-name target-name]})(remove-event-listener-breakpoint connection {:as params, :keys [event-name target-name]})

Removes breakpoint on particular DOM event.

Parameters map keys:

Key Description
:event-name Event name.
:target-name EventTarget interface name. (optional)

remove-instrumentation-breakpoint

(remove-instrumentation-breakpoint)(remove-instrumentation-breakpoint {:as params, :keys [event-name]})(remove-instrumentation-breakpoint connection {:as params, :keys [event-name]})

Removes breakpoint on particular native event.

Parameters map keys:

Key Description
:event-name Instrumentation name to stop on.

remove-xhr-breakpoint

(remove-xhr-breakpoint)(remove-xhr-breakpoint {:as params, :keys [url]})(remove-xhr-breakpoint connection {:as params, :keys [url]})

Removes breakpoint from XMLHttpRequest.

Parameters map keys:

Key Description
:url Resource URL substring.

set-break-on-csp-violation

(set-break-on-csp-violation)(set-break-on-csp-violation {:as params, :keys [violation-types]})(set-break-on-csp-violation connection {:as params, :keys [violation-types]})

Sets breakpoint on particular CSP violations.

Parameters map keys:

Key Description
:violation-types CSP Violations to stop upon.

set-dom-breakpoint

(set-dom-breakpoint)(set-dom-breakpoint {:as params, :keys [node-id type]})(set-dom-breakpoint connection {:as params, :keys [node-id type]})

Sets breakpoint on particular operation with DOM.

Parameters map keys:

Key Description
:node-id Identifier of the node to set breakpoint on.
:type Type of the operation to stop upon.

set-event-listener-breakpoint

(set-event-listener-breakpoint)(set-event-listener-breakpoint {:as params, :keys [event-name target-name]})(set-event-listener-breakpoint connection {:as params, :keys [event-name target-name]})

Sets breakpoint on particular DOM event.

Parameters map keys:

Key Description
:event-name DOM Event name to stop on (any DOM event will do).
:target-name EventTarget interface name to stop on. If equal to "*" or not provided, will stop on any

EventTarget. (optional)

set-instrumentation-breakpoint

(set-instrumentation-breakpoint)(set-instrumentation-breakpoint {:as params, :keys [event-name]})(set-instrumentation-breakpoint connection {:as params, :keys [event-name]})

Sets breakpoint on particular native event.

Parameters map keys:

Key Description
:event-name Instrumentation name to stop on.

set-xhr-breakpoint

(set-xhr-breakpoint)(set-xhr-breakpoint {:as params, :keys [url]})(set-xhr-breakpoint connection {:as params, :keys [url]})

Sets breakpoint on XMLHttpRequest.

Parameters map keys:

Key Description
:url Resource URL substring. All XHRs having this substring in the URL will get stopped upon.