How to Interactively Debug Deluge

Suggestions and discussion of future versions
Post Reply
spreadred13
New User
New User
Posts: 2
Joined: Mon Sep 30, 2019 11:00 pm

How to Interactively Debug Deluge

Post by spreadred13 »

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.
Jaras
New User
New User
Posts: 1
Joined: Sat Aug 31, 2024 5:50 am

Re: How to Interactively Debug Deluge

Post by Jaras »

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"
            ]
        },
    ]
}
Post Reply