Skip to content

New Debug Adapter Protocol (DAP) server#1145

Merged
vmusulainen merged 16 commits into
masterfrom
DAP-server-debugger
Jan 14, 2026
Merged

New Debug Adapter Protocol (DAP) server#1145
vmusulainen merged 16 commits into
masterfrom
DAP-server-debugger

Conversation

@vmusulainen
Copy link
Copy Markdown
Contributor

@vmusulainen vmusulainen commented Jan 14, 2026

This pull request introduces a new Debug Adapter Protocol (DAP) server to replace the old custom debugger implementation. The DAP server enables debugging of RhoMobile applications through standard DAP-compatible clients like VS Code.

Changes:

Complete rewrite of the debugger from a custom protocol to DAP-compliant implementation
Added support for breakpoints, stepping, variable inspection, and stack traces via DAP protocol
Added diagnostic logging in rhoframework.rb for debugging the debugger initialization

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request introduces a new Debug Adapter Protocol (DAP) server to replace the old custom debugger implementation. The DAP server enables debugging of RhoMobile applications through standard DAP-compatible clients like VS Code.

Changes:

  • Complete rewrite of the debugger from a custom protocol to DAP-compliant implementation
  • Added support for breakpoints, stepping, variable inspection, and stack traces via DAP protocol
  • Added diagnostic logging in rhoframework.rb for debugging the debugger initialization

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 27 comments.

File Description
lib/extensions/debugger/debugger.rb Complete rewrite implementing DAP server with TCP socket handling, breakpoint management, and debug state tracking
lib/framework/rhoframework.rb Added debug logging statement to verify debugger initialization parameters

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/extensions/debugger/debugger.rb Outdated
Comment thread lib/extensions/debugger/debugger.rb
Comment thread lib/extensions/debugger/debugger.rb
@vmusulainen vmusulainen changed the title Dap server debugger New Debug Adapter Protocol (DAP) server Jan 14, 2026
Comment thread lib/extensions/debugger/debugger.rb Outdated
Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 14, 2026

@vmusulainen I've opened a new pull request, #1146, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits January 14, 2026 16:39
Co-authored-by: vmusulainen <143790+vmusulainen@users.noreply.github.com>
Co-authored-by: vmusulainen <143790+vmusulainen@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 14, 2026

@vmusulainen I've opened a new pull request, #1149, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: vmusulainen <143790+vmusulainen@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 14, 2026

@vmusulainen I've opened a new pull request, #1150, to work on those changes. Once the pull request is ready, I'll request review from you.

Co-authored-by: vmusulainen <143790+vmusulainen@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 14, 2026

@vmusulainen I've opened a new pull request, #1151, to work on those changes. Once the pull request is ready, I'll request review from you.

@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 14, 2026

@vmusulainen I've opened a new pull request, #1152, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 14, 2026

@vmusulainen I've opened a new pull request, #1153, to work on those changes. Once the pull request is ready, I'll request review from you.

@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
vmusulainen and others added 3 commits January 15, 2026 00:02
Implement resource cleanup in DAP server disconnect handler
Add DEBUG_HOST validation to prevent debugger exposure to external networks
…hods

Co-authored-by: vmusulainen <143790+vmusulainen@users.noreply.github.com>
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
Copilot AI and others added 4 commits January 14, 2026 21:05
Co-authored-by: vmusulainen <143790+vmusulainen@users.noreply.github.com>
Co-authored-by: vmusulainen <143790+vmusulainen@users.noreply.github.com>
…8886-470c-b967-d8f10e48e945

Add comprehensive documentation to DAPServer class
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@rhomobile rhomobile deleted a comment from Copilot AI Jan 14, 2026
@vmusulainen vmusulainen merged commit efc2739 into master Jan 14, 2026
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants