Skip to content

🔍 Debugging: Add debug commands and introspection tools #116

Description

@quantumshiro

Description

Add debugging and introspection capabilities to help developers and users understand what's happening inside PolyTorus.

Tasks

  • Add debug subcommand to CLI with various debug options
  • Implement state inspection commands (view current blockchain state)
  • Add network debugging (show peer connections, message queues)
  • Create memory usage inspection tools
  • Add configuration dump and validation commands
  • Implement transaction tracing and analysis
  • Add performance profiling helpers

Debug commands to add

  • polytorus debug state - Show current blockchain state
  • polytorus debug network - Show network status and peers
  • polytorus debug config - Validate and display configuration
  • polytorus debug memory - Show memory usage statistics
  • polytorus debug trace <tx_hash> - Trace transaction execution
  • polytorus debug performance - Show performance metrics

Acceptance Criteria

  • Debug commands provide useful information for troubleshooting
  • Output is well-formatted and easy to understand
  • Debug features don't impact production performance
  • Debug commands are documented
  • Sensitive information is not exposed in debug output

Estimated Time

5-6 hours

Excellent for developers who want to add powerful debugging capabilities!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions