Skip to content

feat: implementation of remote TLS, storage filtering and repeat-execution support#724

Merged
Timi16 merged 1 commit intoTimi16:mainfrom
tx-cyber:main
Mar 29, 2026
Merged

feat: implementation of remote TLS, storage filtering and repeat-execution support#724
Timi16 merged 1 commit intoTimi16:mainfrom
tx-cyber:main

Conversation

@tx-cyber
Copy link
Copy Markdown
Contributor

Soroban Debugger Enhancements: Remote TLS, Storage Filtering and Repeat Execution

This PR implements three key enhancements to the Soroban Debugger to improve remote debugging security and achieve feature parity in the VS Code extension

1. Remote TLS Support

Aligned the remote client with its documentation by adding native TLS support to the remote subcommand.

2. VS Code Storage Filtering

Exposed storage filter controls in the VS Code extension launch configuration, allowing users to manage large contract states effectively.

3. VS Code Repeat Execution

Added support for repeat-execution workflows in the extension for performance benchmarking.

  • Extension: Added repeat property to launch.json.
  • Backend: Integrated RepeatRunner into the debug server. When repeat > 1, the debugger executes the function N times and reports aggregate duration, CPU, and memory statistics to the Debug Console. Closes vscode parity: add repeat-execution launch support #714

Key Changes

Core / CLI

  • src/cli/args.rs: Added TLS and parity fields to RemoteArgs and ServerArgs.
  • src/client/remote_client.rs: Refactored connection logic to support RemoteStream (Plain/TLS).
  • src/cli/commands.rs: Updated remote and server commands to pass new arguments.
  • src/server/debug_server.rs: Implemented filtering and repeat execution logic

VS Code Extension

  • extensions/vscode/package.json: Updated configuration schema and snippets.
  • extensions/vscode/src/cli/debuggerProcess.ts: Updated configuration mapping and CLI flag generation.
  • extensions/vscode/src/dap/adapter.ts: Mapped DAP arguments to the underlying debugger process.

Documentation

  • docs/feature-matrix.md: Updated to reflect new support status.
  • docs/remote-debugging.md: Added TLS client examples and updated remote usage guides.
  • man/man1/soroban-debug-remote.1: Updated the manpage with new TLS options.

Verification Results

  • Verified Remote TLS connectivity between CLI client and server.
  • Verified Storage Filtering in the VS Code Variables panel using both prefix (balance:*) and regex (re:^user_) patterns
  • Verified Repeat Execution output in the VS Code Debug Console, showing min/max/avg statistics for performance-sensitive functions

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 29, 2026

@tx-cyber Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Timi16 Timi16 merged commit dc5d825 into Timi16:main Mar 29, 2026
1 of 3 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

2 participants