name: python-monitoring-trace description: Use when you need a detailed execution trace of a Python script using sys.monitoring, including logging every operation with include/exclude event controls.
Python Monitoring Trace
- Run the helper with
python scripts/monitor_trace.py path/to/script.py -- arg1 arg2. - List available events with
--list-eventsand choose events by name. - Include only specific events with
--include LINE,INSTRUCTION(comma-separated or repeatable). - Exclude events with
--exclude C_RETURN,C_RAISE(comma-separated or repeatable). - Write logs to a file with
--output trace.log; omit--outputto write to stdout.
chat Comments (0)
Sign in to join the discussion and leave a comment.
Skill Details
GitHub Stars
0
GitHub Forks
0
Created
Jan 2026
Last Updated
4个月前
tools
tools debugging
Related Skills
Build your own?
Join 12,000+ developers contributing to the Claude ecosystem.
No comments yet. Be the first to share your thoughts!