python-monitoring-trace
Use when you need a detailed execution trace of a Python script using sys.monitoring, including logging every operation with include/exclude event controls.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
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.
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!