Add New Command to Makefile for Enhanced Localnet Debugging #4818
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new Makefile command,
debug-multi-bls-with-terminal, to improve the debugging process for running a localnet with external validators and multiple BLS keys. Unlike the existingdebug-multi-blscommand, which runs the localnet in the background and requires manual process management to view logs or handle errors, the new command usesscreento run the localnet in the foreground, allowing developers to easily attach to the session (screen -r localnet) and view live logs. All logs are stored in./tmp_log/localnet_terminal.logfor convenient access. Additionally, the localnet automatically shuts down when the terminal orscreensession is closed, streamlining cleanup and making it easier to debug issues without manual intervention.