feat: add btcli utils debug command for debugging info dump#757
Closed
mimalsm wants to merge 1 commit intoopentensor:stagingfrom
Closed
feat: add btcli utils debug command for debugging info dump#757mimalsm wants to merge 1 commit intoopentensor:stagingfrom
mimalsm wants to merge 1 commit intoopentensor:stagingfrom
Conversation
Implements GitHub issue opentensor#184 - adds a new 'btcli utils debug' command that provides a comprehensive information dump for debugging purposes. Features: - System information display (OS version, kernel version, Python version) with cross-platform support (macOS, Linux, Windows) - Last run command extraction from debug file - Configuration display with smart filtering: * Always shows essential config keys (wallet_name, wallet_path, wallet_hotkey, network, use_cache) * Only shows other config keys when they have meaningful values - Graceful fallback when debug file doesn't exist - Respects BTCLI_DEBUG_FILE environment variable The command helps users quickly gather debugging information to share with developers when reporting issues, matching the format requested in the issue. Implementation details: - Added debug() method to CLIManager class - Registered command with utils_app - Uses platform-specific commands (sw_vers, uname) with fallbacks - Safely parses config from debug file using ast.literal_eval - Filters config output to reduce clutter while maintaining essential info
Author
Author
|
@thewhaleking can you run the workflows? |
thewhaleking
requested changes
Dec 16, 2025
Contributor
thewhaleking
left a comment
There was a problem hiding this comment.
This functionality already exists in btcli --debug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Implements GitHub issue #184 - adds a new 'btcli utils debug' command that provides a comprehensive information dump for debugging purposes.
Features:
The command helps users quickly gather debugging information to share with developers when reporting issues, matching the format requested in the issue.
Implementation details:
Closes #184