From 53e3f287ceb44a8b4ff5c19a06a2ecd217322c58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Mon, 5 Aug 2024 03:31:07 +0200 Subject: [PATCH] Configured debugging with vscode --- .vscode/launch.json | 11 +++++++++++ Procfile.dev | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2512c53 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Attach to rdbg Process", + "type": "rdbg", + "request": "attach", + "debugPort": "${workspaceRoot}/tmp/sockets/rdbg.socket", + }, + ] + } \ No newline at end of file diff --git a/Procfile.dev b/Procfile.dev index da151fe..7f1b171 100644 --- a/Procfile.dev +++ b/Procfile.dev @@ -1,2 +1,4 @@ -web: bin/rails server +web: rdbg --command --nonstop --sock_path=tmp/sockets/rdbg.socket -- bundle exec bin/rails server +//web: rdbg --command --nonstop --open=vscode --sock_path=tmp/sockets/rdbg.socket -- bundle exec bin/rails server +//web: bin/rails server css: bin/rails tailwindcss:watch