Home Manual Reference Source
import {MacroDebug} from 'zetapush-js/src/mapping/services.js'
public class | source

MacroDebug

Extends:

src/mapping/core.js~Service → MacroDebug

User API for macro debugging

Debugger API for macro. These API verbs are not intended for use by most developers.

Static Member Summary

Static Public Members
public static get

Get default deployment id associated to MacroDebug service

Method Summary

Public Methods
public

breakpoint(objectPattern: {"breakpoint": *, "token": *, "enabled": *}): *

Enables or disables a breakpoint

public

info(objectPattern: {"token": *, "path": *, "exp": *, "requestId": *, "frame": *}): *

Requests some information

public

livedebug(objectPattern: {"parameters": *, "token": *, "breakpoints": *, "hardFail": *, "name": *, "requestId": *, "debug": *}): *

Debugs a previously recorded macro

public

resume(objectPattern: {"token": *, "type": *}): *

Resumes a paused macro

public

variable(objectPattern: {"token": *, "name": *, "frame": *, "data": *}): *

Sets a variable value

Static Public Members

public static get DEFAULT_DEPLOYMENT_ID: string: string source

Get default deployment id associated to MacroDebug service

Return:

string

Public Methods

public breakpoint(objectPattern: {"breakpoint": *, "token": *, "enabled": *}): * source

Enables or disables a breakpoint

Params:

NameTypeAttributeDescription
objectPattern {"breakpoint": *, "token": *, "enabled": *}
  • default: {"breakpoint":null,"token":null,"enabled":null}

Return:

*

public info(objectPattern: {"token": *, "path": *, "exp": *, "requestId": *, "frame": *}): * source

Requests some information

Params:

NameTypeAttributeDescription
objectPattern {"token": *, "path": *, "exp": *, "requestId": *, "frame": *}
  • default: {"token":null,"path":null,"exp":null,"requestId":null,"frame":null}

Return:

*

public livedebug(objectPattern: {"parameters": *, "token": *, "breakpoints": *, "hardFail": *, "name": *, "requestId": *, "debug": *}): * source

Debugs a previously recorded macro

The given breakpoints will be honored, causing a suspension of the execution, resumable via 'resume'. Only one debug session can be active at any given time.

Params:

NameTypeAttributeDescription
objectPattern {"parameters": *, "token": *, "breakpoints": *, "hardFail": *, "name": *, "requestId": *, "debug": *}
  • default: {"parameters":null,"token":null,"breakpoints":null,"hardFail":null,"name":null,"requestId":null,"debug":null}

Return:

*

public resume(objectPattern: {"token": *, "type": *}): * source

Resumes a paused macro

Params:

NameTypeAttributeDescription
objectPattern {"token": *, "type": *}
  • default: {"token":null,"type":null}

Return:

*

public variable(objectPattern: {"token": *, "name": *, "frame": *, "data": *}): * source

Sets a variable value

Params:

NameTypeAttributeDescription
objectPattern {"token": *, "name": *, "frame": *, "data": *}
  • default: {"token":null,"name":null,"frame":null,"data":null}

Return:

*