vscode-rdbg
vscode-rdbg copied to clipboard
How do you run in console, having trouble loading project gems/bundler
Historically I have been using pry to debug in console. I am trying to do something similar with rdbg where I can launch from console and run specific class and functions. I'm using the below in my configuration but it has trouble loading gems I think?
{
"type": "rdbg",
"name": "Launch Rails Console",
"request": "launch",
"command": "bin/rails",
"args": ["--", "--noautocomplete"],
"script": "console",
"useBundler": false,
"rdbgPath": "my path"
}
I run into the following error,
If I step over, I run into this error
I don't have these issues if I just startup rails console. What am I doing wrong? Thank you
If I use the following configuration, it loads and allows me to run code in the terminal but the breakpoints don't trigger
{ "type": "rdbg", "name": "Launch Rails Console 2", "request": "launch", "command": "my path to rails", "script": "console", "useBundler": true, "useTerminal": true, "rdbgPath": "my path to rdbg" }
Thank you for reporting. Unfortunately, I cannot reproduce your problem so far. Could you give us details on how to reproduce it?
Here is a step I tried.
- Configure json files as follows:
{
"type": "rdbg",
"name": "Launch Rails Console",
"request": "launch",
"command": "bin/rails",
"args": ["--", "--noautocomplete"],
"script": "console",
"useBundler": false,
"rdbgPath": "my path"
}
- Click "Pause"
- Paused at as follows:
If I use the following configuration, it loads and allows me to run code in the terminal but the breakpoints don't trigger
Breakpoints work in my environment, though 🤔
I tried your JSON file but getting this error now
Could you try the following script to see if an error occurs?
a=1
b=2
c=3
d=4