rk dap

Summary

Debug Adapter Protocol (BrightScript) debugging for Roku devices (server mode only).

Description

Debug Adapter Protocol (BrightScript) debugging for Roku devices. DAP debugging requires a running rk server. Start it with 'rk server'.

Usage

rk dap <subcommand> [options]

reconnect

Summary

Reconnect the shared DAP connection

Description

Reconnect the shared DAP connection. It operates on the shared connection regardless of session, so --session is not accepted.

Usage

rk dap reconnect [options]

Options

FlagValue/typeRequired
--jsonbooleanno

--json

Output raw JSON response

Examples

rk dap reconnect

See also

threads

Summary

List device threads

Description

List device threads

Usage

rk dap threads [options]

Options

FlagValue/typeRequired
--sessionid (string)no
--jsonbooleanno

--session

Target session ID

--json

Output raw JSON response

Examples

rk dap threads

See also

thread select

Summary

Select the active thread

Description

Select the active thread

Usage

rk dap thread select <id> [options]
ArgumentDescriptionRequiredRepeatable
idThread ID to select.yesno

Options

FlagValue/typeRequired
--sessionid (string)no
--jsonbooleanno

--session

Target session ID

--json

Output raw JSON response

Examples

rk dap thread select thread-1

See also

thread stop-reason

Summary

Get the selected thread's stop reason

Description

Get the selected thread's stop reason

Usage

rk dap thread stop-reason [options]

Options

FlagValue/typeRequired
--sessionid (string)no
--threadid (string)no
--jsonbooleanno

--session

Target session ID

--thread

Target thread ID

--json

Output raw JSON response

See also

variables

Summary

Get variables at a thread/frame/path

Description

Get variables at a thread/frame/path

Usage

rk dap variables [options]

Options

FlagValue/typeRequired
--sessionid (string)no
--threadid (string)no
--frame-indexn (number)no
--pathpath (string)no
--include-virtual-keysbooleanno
--jsonbooleanno

--session

Target session ID

--thread

Target thread ID

--frame-index

Stack frame index

--path

Dotted/bracketed variable path (e.g. "m.top.children[0].text")

Example:

rk dap variables --thread 1 --frame-index 0 --path "m.top.children[0].text"

--include-virtual-keys

Include virtual keys (e.g. $children)

--json

Output raw JSON response

Examples

rk dap variables --path "m.top.text"

See also


Did this page help you?