mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-11-08 14:21:05 +00:00
17 lines
617 B
Markdown
17 lines
617 B
Markdown
|
Add the following configuration to `launch.json` `configurations` array to start bench console and use debugger. Replace `mysite.localhost` with appropriate site. Also replace `frappe-bench` with name of the bench directory.
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"name": "Bench Console",
|
||
|
"type": "python",
|
||
|
"request": "launch",
|
||
|
"program": "${workspaceFolder}/frappe-bench/apps/frappe/frappe/utils/bench_helper.py",
|
||
|
"args": ["frappe", "--site", "mysite.localhost", "console"],
|
||
|
"pythonPath": "${workspaceFolder}/frappe-bench/env/bin/python",
|
||
|
"cwd": "${workspaceFolder}/frappe-bench/sites",
|
||
|
"env": {
|
||
|
"DEV_SERVER": "1"
|
||
|
}
|
||
|
}
|
||
|
```
|