← Back to Skills Marketplace
michealxie001

OpenClaw Debugger

by michealxie001 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
156
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install openclaw-debugger
Description
Debugging assistant. Analyzes error logs, suggests breakpoints, traces execution flow, and helps identify root causes of issues.
README (SKILL.md)

Debugging Assistant

调试助手,分析错误日志、建议断点、追踪执行流程、帮助识别问题根因。

Version: 1.0
Features: 错误分析、断点建议、执行追踪、根因分析


Quick Start

1. 分析错误日志

# 分析 Python 错误
python3 scripts/main.py analyze-error "Traceback (most recent call last):..."

# 从文件分析
python3 scripts/main.py analyze-error --file error.log

2. 建议断点

# 为代码建议断点位置
python3 scripts/main.py suggest-breakpoints --file src/main.py

# 针对特定函数
python3 scripts/main.py suggest-breakpoints --function process_data

3. 追踪执行

# 追踪函数调用
python3 scripts/main.py trace --file src/app.py --function handle_request

Commands

命令 说明 示例
analyze-error 分析错误 analyze-error "Traceback..."
suggest-breakpoints 建议断点 suggest-breakpoints --file src.py
trace 追踪执行 trace --file src.py --function foo

Error Analysis

Python Traceback 分析

$ python3 scripts/main.py analyze-error "Traceback (most recent call last):
  File 'src/auth.py', line 45, in login
    user = db.get_user(username)
  File 'src/db.py', line 23, in get_user
    cursor.execute(query, (username,))
psycopg2.OperationalError: connection closed"

🔍 Error Analysis
=================

Type: Database Connection Error
Severity: 🔴 High

Root Cause:
The database connection was closed before executing the query.

Possible Causes:
1. Connection pool exhaustion
2. Connection timed out
3. Database server restart

Suggested Fixes:
1. Check connection pool settings
2. Implement connection retry logic
3. Add connection health checks

File: src/db.py:23
Function: get_user

常见错误模式

自动识别:

  • ImportError / ModuleNotFoundError - 导入问题
  • AttributeError - 属性访问错误
  • KeyError / IndexError - 数据访问错误
  • TypeError - 类型错误
  • ConnectionError - 网络/连接错误
  • TimeoutError - 超时错误

Breakpoint Suggestions

$ python3 scripts/main.py suggest-breakpoints --file src/payment.py

🔍 Breakpoint Suggestions
=========================

High Priority:
  Line 45: process_payment() - Entry point
  Line 67: validate_card() - Validation logic
  Line 89: charge_customer() - External API call

Medium Priority:
  Line 34: calculate_total() - Business logic
  Line 56: apply_discount() - Conditional logic

Tips:
- Set breakpoints before external API calls
- Watch variables: amount, currency, customer_id

Execution Tracing

$ python3 scripts/main.py trace --file src/api.py --function handle_request

🔍 Execution Trace
==================

Function: handle_request
File: src/api.py:23

Call Graph:
handle_request
├── authenticate_user
│   └── verify_token
├── validate_request
│   └── check_schema
├── process_data
│   ├── fetch_from_db
│   └── cache_result
└── format_response

Potential Issues:
- No error handling in process_data
- External call to fetch_from_db (line 67)

Configuration

.debugging.json:

{
  "breakpoints": {
    "before_external_calls": true,
    "before_conditionals": true,
    "in_error_handlers": true
  },
  "error_patterns": {
    "ignore": ["DeprecationWarning"],
    "highlight": ["SecurityError", "DataLossError"]
  }
}

Examples

场景 1:排查崩溃问题

# 1. 复制错误信息
python3 main.py analyze-error "$(cat error.log)"

# 2. 根据分析设置断点
python3 main.py suggest-breakpoints --file src/crash_point.py

# 3. 追踪相关函数
python3 main.py trace --function problematic_function

场景 2:性能问题排查

# 追踪执行路径
python3 main.py trace --file src/slow_endpoint.py --function handler

# 识别冗余调用

场景 3:API 错误调试

# 分析 API 错误响应
python3 main.py analyze-error "HTTP 500: Internal Server Error"

# 检查 API 处理代码
python3 main.py suggest-breakpoints --file src/api/handlers.py

Files

skills/debugging/
├── SKILL.md                    # 本文件
└── scripts/
    ├── main.py                 # ⭐ 统一入口
    ├── error_analyzer.py       # 错误分析器
    └── tracer.py               # 执行追踪器

Roadmap

  • Python error analysis
  • JavaScript error analysis
  • Interactive debugger integration
  • Log file monitoring
Usage Guidance
This skill appears to be a straightforward local debugging helper: it reads error text and source files and prints suggestions. Before installing/running: 1) confirm you received the full source (SKILL.md mentions error_analyzer.py and tracer.py, but only scripts/main.py is bundled and the main.py listing appears truncated) — ask the publisher for the complete package. 2) Inspect the full main.py and any referenced modules for network calls or hidden behavior (current file shows no networking, but missing files could). 3) Run the code in a sandbox or isolated environment if you plan to feed it real logs or source files, especially if those files contain secrets. 4) If you will run it regularly, request a signed/verified release or source repository so you can track updates. If you want, I can point out the exact places in main.py to double-check or help compare the packaged files to the SKILL.md expectations.
Capability Analysis
Type: OpenClaw Skill Name: openclaw-debugger Version: 1.0.0 The skill is a static analysis utility designed to assist with debugging Python code by analyzing tracebacks, suggesting breakpoints, and tracing function calls. The implementation in `scripts/main.py` uses standard libraries like `ast` and `re` to parse local files and text, and it lacks any network capabilities, shell execution, or data exfiltration logic. All instructions in `SKILL.md` are consistent with the tool's stated purpose.
Capability Assessment
Purpose & Capability
Name/description (debugging assistant) matches the provided code and SKILL.md: the code analyzes traceback text, suggests breakpoints by scanning source files, and performs basic AST-based tracing. No unrelated binaries, cloud APIs, or extra credentials are requested.
Instruction Scope
SKILL.md instructs the agent to run scripts/main.py with user-supplied error text or source files. The runtime instructions and code operate on local files and input provided by the user (error logs, source files), which is expected for a debugger. However, the README references additional modules (error_analyzer.py, tracer.py) that are not present in the package, and the included scripts/main.py appears truncated in the provided listing — this incomplete packaging should be resolved before use.
Install Mechanism
No install spec is present (instruction-only + a code file). That is low-risk — nothing is downloaded or written to disk by an installer step beyond the files already bundled.
Credentials
The skill declares no required environment variables, credentials, or config paths. The code shown does not access environment secrets or external credential stores. It does read user-supplied files (error logs, source files), which is expected for this functionality.
Persistence & Privilege
The skill is not marked always:true, does not request persistent presence, and doesn't attempt to modify other skill configurations. It only runs as an invoked script and therefore has a limited privilege profile.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install openclaw-debugger
  3. After installation, invoke the skill by name or use /openclaw-debugger
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Debugging assistant with error analysis, breakpoint suggestions, and execution tracing
Metadata
Slug openclaw-debugger
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is OpenClaw Debugger?

Debugging assistant. Analyzes error logs, suggests breakpoints, traces execution flow, and helps identify root causes of issues. It is an AI Agent Skill for Claude Code / OpenClaw, with 156 downloads so far.

How do I install OpenClaw Debugger?

Run "/install openclaw-debugger" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is OpenClaw Debugger free?

Yes, OpenClaw Debugger is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does OpenClaw Debugger support?

OpenClaw Debugger is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created OpenClaw Debugger?

It is built and maintained by michealxie001 (@michealxie001); the current version is v1.0.0.

💬 Comments