Open ikhsan opened 9 months ago
attaching to the all Ruby processes from one VSCode instance?
attaching to the all Ruby processes from one VSCode instance?
indeed, this way all the processes (eg we’re using 4 processes on our setup) will all be attached and will be treated as child processes
without this, then the DX isn’t ideal as we need to select manually 4 times
Got my first draft PR for the proposal: https://github.com/ruby/vscode-rdbg/pull/427
Let me know what you folks think 🙏
cc @ko1 @ono-max
Thanks for making this awesome debugger extension! Launching tests work out of the box, which is cool, although attaching to our servers don't have a ideal developer experience.
Problem
The default behaviour of the VSCode extension is to list all process and pick only one. Our setup uses 12 puma process to ensure a good developer experience. What happens now is that to debug properly, we needed to manually click and attach them 1-by-1 🥲
Proposal
In this fork, I send custom events
attachSingleSocket
and the listener will start the debug just for the socket paths https://github.com/ruby/vscode-rdbg/commit/4441cbc4b9c36f67ec23206bff3971cb178c4426I wonder if this capability interest other folks? If yes, we can add env variable or config (eg.
SUPPORT_ATTACH_MULTI_SOCKETS
orsupportAttachMultiSockets
) where when multiple sockets are detected, we use the multi session insteadHappy to help implementing the new capabilities if this has interests 👍