rokucommunity / roku-debug

A compatibility wrapper around the BrightScript debug protocol https://developer.roku.com/en-ca/docs/developer-program/debugging/socket-based-debugger.md
MIT License
12 stars 9 forks source link

Support relaunch debug protocol #181

Closed Christian-Holbrook closed 6 months ago

Christian-Holbrook commented 6 months ago

Persist the debug session for debug protocol. This is accomplished by parsing the telnet logs for the line "Waiting for debugging connection" and then creating the control port. When the application is closed, we continue to parse the telnet logs for that line. When that line is detected the control port will be created again.

A new signal app-ready is emitted to let BrightScriptDebugSession know the debug adapters are ready. Both adapters have to emit this signal.

When the app is closed via a home key press, reset the breakpoint managers state for the debug protocol.