-
Couldn't load subscription status.
- Fork 139
Description
Your proposal
Make it possible for the debugger to pause the program until the first client connects:
require "debug/open_wait_for_client"
# Program is now paused until the first debugger client connectsOnce the first client connects, the program can proceed.
Additional context
We are working to integrate debug.rb into Stripe's Ruby test runner. The test runner needs to start the server and wait for VS Code to connect before running the tests.
debug/open does not work for this use case. debug/open pauses the program when the debugger starts, but does not resume the program after VS Code connects. Instead, VS Code reports the program as paused on a breakpoint in our test runner code. The user then has to hit "resume" to run their tests and hit the breakpoints that they actually set.