vscode: launch.json zum debuggen einer Sinatra Anwendung

OP #7572958
Lesenswert?

Problem gelöst: launch.json muss folgenden Inhalt haben:

1
{
2
    // Use IntelliSense to learn about possible attributes.
3
    // Hover to view descriptions of existing attributes.
4
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
    "version": "0.2.0",
6
    "configurations": [
7
        {
8
            "type": "rdbg",
9
            "name": "Debug current file with rdbg",
10
            "request": "launch",
11
            "script": "${file}",
12
            "args": [],
13
            "askParameters": true
14
            },
15
            {
16
            "type": "rdbg",
17
            "name": "Attach with rdbg",
18
            "request": "attach"
19
            }
20
    ]
21
}

Außerdem muss im Gemfile der verwendete Server eingetragen sein, also z.B. puma.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren