Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@procdump
Copy link

Currently it's not possible to set the debug port for the debugger feature. It's always set to None for every EbpfVm instance.
What this patch does is if the VM_DEBUG_PORT environment variable is set then parse it and use that value as a debug port for the created EbpfVm instance. This allows for solana-lldb to connect to the specified debug port and further step-debugging is also possible.

…e the value

as a debug port for the created EbpfVm instance.
@procdump procdump marked this pull request as ready for review September 15, 2025 13:19
@Lichtso
Copy link
Collaborator

Lichtso commented Sep 22, 2025

@procdump
Copy link
Author

@Lichtso Lichtso merged commit 565bfe5 into anza-xyz:main Sep 23, 2025
11 checks passed
procdump added a commit to procdump/sbpf that referenced this pull request Oct 23, 2025
…za-xyz#69)

* If the VM_DEBUG_PORT environment variable is set then parse it and use the value
as a debug port for the created EbpfVm instance.

* As a part of the migration to using an environment variable remove the
debug_port command line option from the CLI.
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.

2 participants