Options
All
  • Public
  • Public/Protected
  • All
Menu

A DEBUGGER flag in the game source that causes the evaluation to pause. It works like the debugger keyword in JavaScript.

Note: the game needs to run in debug mode (node --inspect-brk path/to/puzzlescript.js or npm run play-debug) for this flag to have any effect.

This string can be added to:

  • A Rule. Example: DEBUGGER [ > player | cat ] -> [ > player | > cat ]
  • A bracket when the condition is updated: [ > player | cat ] DEBUGGER -> [ > player | > cat ]
  • A bracket when it is evaluated: [ > player | cat ] -> [ > player | > cat ] DEBUGGER
  • A neighbor when the condition is updated: [ > player DEBUGGER | cat ] -> [ > player | > cat ]
  • A neighbor when it is evaluated: [ > player | cat ] -> [ > player | > cat DEBUGGER ]
  • A tile when the condition is updated: [ > player | DEBUGGER cat ] -> [ > player | > cat ]
  • A tile when it is matched: [ > player | cat ] -> [ > player | DEBUGGER > cat ]

Index

Enumeration members

Enumeration members

BREAKPOINT

BREAKPOINT: = "DEBUGGER"

BREAKPOINT_REMOVE

BREAKPOINT_REMOVE: = "DEBUGGER_REMOVE"

Pause when a Cell causes an entry to be removed from the set of matches for this rule/bracket/neighbor/tile

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc