You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0",
"configurations": [
{
"type": "rdbg",
"name": "Run the current file with rdbg",
"useBundler": true,
"request": "launch",
"command": "ruby",
"script": "${file}",
},
]
}
Create the following in test.rb.
a=1binding.bbinding.b
Ensure v0.1.0 of the vscode-rdbg extension is installed.
Switch to test.rb and choose "Run the current file with rdbg". Observe that it correctly stops at the first breakpoint.
Stop the debugger.
Add sleep 1 on a new line after a=1
Choose "Run the current file with rdbg" again.
Observe that it incorrectly skips the first breakpoint and stops at the second.
The text was updated successfully, but these errors were encountered:
andyw8
changed the title
First breakpoint is skipped when running via bin/rails runner on a remote development environment
First breakpoint is skipped
Feb 17, 2023
andyw8
changed the title
First breakpoint is skipped
First breakpoint is skipped on a remote development environment
Feb 22, 2023
Describe the bug
Breakpoint skipped when running on a remote development environment
To Reproduce
Go to https://github.com/github/codespaces-rails to start with a new Rails app.
Choose Use This Template -> Open in a Codespace
Create the following in
.vscode/launch.json
Create the following in
test.rb
.Ensure v0.1.0 of the vscode-rdbg extension is installed.
Switch to
test.rb
and choose "Run the current file with rdbg". Observe that it correctly stops at the first breakpoint.Stop the debugger.
Add
sleep 1
on a new line aftera=1
Choose "Run the current file with rdbg" again.
Observe that it incorrectly skips the first breakpoint and stops at the second.
Your environment
ruby -v
: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]rdbg -v
: rdbg 1.7.1Expected behavior
It should stop at the first breakpoint.
The text was updated successfully, but these errors were encountered: