Configured debugging with vscode

This commit is contained in:
2024-08-05 03:31:07 +02:00
parent 5bba70b583
commit 53e3f287ce
2 changed files with 14 additions and 1 deletions

11
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to rdbg Process",
"type": "rdbg",
"request": "attach",
"debugPort": "${workspaceRoot}/tmp/sockets/rdbg.socket",
},
]
}

View File

@@ -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