# Class: Debugger
Flo.w context debugger. Provides debugging methods available in the browser web developer console.
If the enableDebug
is specified when initializing a Flo.w context a Debugger
instance is available
as the global property window.FDBG
.
# Hierarchy
- Debugger
# Constructors
# constructor
+ new Debugger(context
: FlowCoreContext): Debugger
Constructs a new Flo.w debugger instance.
A new Flo.w debugger will be created automatically if the enableDebug
option is
specified when initializing a Flo.w context.
# Parameters:
Name | Type | Description |
---|---|---|
context | FlowCoreContext | Flo.w context ID. |
Returns: Debugger
# Properties
# context
• Readonly
context: FlowCoreContext
Flo.w context ID.
# Methods
# get
▸ get(keyOrPath?
: string | string[]): any
Read the value of a Flo.w context state property.
# Parameters:
Name | Type | Description |
---|---|---|
keyOrPath? | string | string[] | Context state property path. |
Returns: any
The context state property value.
# set
▸ set(path
: string, value
: any): void
Set a Flo.w context state property.
# Parameters:
Name | Type | Description |
---|---|---|
path | string | Context state property path |
value | any | New value to set |
Returns: void
# spy
▸ spy(): void
Enable verbose debugging of all reactive updates.
Returns: void
# unspy
▸ unspy(): void
Disable verbose debugging of all reactive updates.
Returns: void
# unwatch
▸ unwatch(path?
: string): void
Remove a previously-installed 'watch' for the specified context state property path.
# Parameters:
Name | Type | Default value | Description |
---|---|---|---|
path | string | null | Context state property path. |
Returns: void
# watch
▸ watch(path
: string): void
Install a 'watch' for the specified context state property path.
# Parameters:
Name | Type | Description |
---|---|---|
path | string | Context state property path. |
Returns: void