- Регистрация
- 1 Мар 2015
- Сообщения
- 1,481
- Баллы
- 155
Steps to Add debugger
{
"version": "0.2.0",
"configurations": [
{
"type": "rdbg",
"name": "Run rake test",
"request": "launch",
"command": "rake",
"script": "test",
"args": [],
"askParameters": false
},
{
"type": "rdbg",
"name": "Debug Rails server",
"request": "launch",
"command": "bin/rails",
"script": "server", // Launch Rails server with debugger
"args": ["-p", "3000"], // Optional: specify port
"askParameters": false
}
]
}
Details Reference
- Install rdbg extention .
- Create launch.json file in vscode.
- Add the given configuration to run the code
- [Optional] You can try this command also if this is working then it should run rdbg --open -n -c -- bundle exec rails s
{
"version": "0.2.0",
"configurations": [
{
"type": "rdbg",
"name": "Run rake test",
"request": "launch",
"command": "rake",
"script": "test",
"args": [],
"askParameters": false
},
{
"type": "rdbg",
"name": "Debug Rails server",
"request": "launch",
"command": "bin/rails",
"script": "server", // Launch Rails server with debugger
"args": ["-p", "3000"], // Optional: specify port
"askParameters": false
}
]
}
Details Reference