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
{
// 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.
-
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.
Your environment
ruby -v: ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
rdbg -v: rdbg 1.7.1
Expected behavior
It should stop at the first breakpoint.
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{ // 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.Ensure v0.1.0 of the vscode-rdbg extension is installed.
Switch to
test.rband choose "Run the current file with rdbg". Observe that it correctly stops at the first breakpoint.Stop the debugger.
Add
sleep 1on a new line aftera=1Choose "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.