Weiß jemand, wie man die launch.json einstellen muss, um einen Webserver in Ruby mit Sinatra zu debuggen?
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.
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.