How to Interactively Debug Deluge
-
- New User
- Posts: 2
- Joined: Mon Sep 30, 2019 11:00 pm
How to Interactively Debug Deluge
Can anyone give me some tips/pointers and how to interactively debug deluge on *nix? I've got the develop branch cloned, built and installed with the "develop" flag, but I'm unsure how to launch Deluge in such a manner as to hit my breakpoints in the source code. I'm using VSCode, but could adapt to something else.
Re: How to Interactively Debug Deluge
For whoever needs it in 2024, launch.json:
Code: Select all
{
"version": "0.2.0",
"configurations": [
{
"name": "deluge-web",
"type": "debugpy",
"request": "launch",
"cwd": "/home/username/deluge/.venv/bin",
"console": "integratedTerminal",
"program": "deluge-web",
"subProcess": true,
"justMyCode": false,
"args": [
"--do-not-daemonize",
"-L",
"debug"
]
},
{
"name": "deluged",
"type": "debugpy",
"request": "launch",
"cwd": "/home/username/deluge/.venv/bin",
"console": "integratedTerminal",
"program": "deluged",
"subProcess": true,
"justMyCode": false,
"args": [
"--do-not-daemonize",
"--port=58846",
"--config=/home/username/.config/deluge/",
"-L",
"debug"
]
},
{
"name": "deluge-gtk",
"type": "debugpy",
"request": "launch",
"cwd": "/home/username/deluge/.venv/bin",
"console": "integratedTerminal",
"program": "deluge-gtk",
"subProcess": true,
"justMyCode": false,
"args": [
"-L",
"debug"
]
},
]
}