Files
yierp-v16/docker/docs/05-development/02-debugging.md
T
2026-10-18 03:39:07 +08:00

595 B

title
title
调试

将以下配置添加到 launch.json 的 configurations 数组中以启动 bench 控制台并使用调试器。将 development.localhost 替换为适当的站点。同时将 frappe-bench 替换为 bench 目录的名称。

{
  "name": "Bench Console",
  "type": "python",
  "request": "launch",
  "program": "/frappe-bench/apps/frappe/frappe/utils/bench_helper.py",
  "args": ["frappe", "--site", "development.localhost", "console"],
  "pythonPath": "/frappe-bench/env/bin/python",
  "cwd": "/frappe-bench/sites",
  "env": {
    "DEV_SERVER": "1"
  }
}