Only one debug session can be active at a time
BenjaminDigeon opened this issue · 5 comments
The current use of a single terminal for launching the rdbg
command prevents from using 2 debugging simultaneous sessions.
If you have 2 configurations like this :
[
{
"name": "Script 1",
"type": "rdbg",
"request": "launch",
"script": "${workspaceRoot}/bin/script1",
"cwd": "${workspaceRoot}",
},
{
"name": "Script 2",
"type": "rdbg",
"request": "launch",
"script": "${workspaceRoot}/bin/script2",
"cwd": "${workspaceRoot}",
"debugPort": "1235"
}
]
You can only launch one at the time, if you try to launch the second it will fail because the terminal named rdbg
is already in use.
The https://github.com/rubyide/vscode-ruby extension allow to have multiple debugging sessions by using several debug console and not just one terminal.
I don't know why the choice of a terminal was use but can't we do the same with terminal ? For example name the terminal with the debugger port if another terminal named rdbg
is already present ? Or use the script name ?
Wow. I never knows we can have two or more debug sessions at a time.
Do you want to use it?
Maybe we can manage multiple terminals, but not sure it is easy for me (TS newbe).
I don't know why the choice of a terminal was use
Because it support STDIN.
Yeah it doesn't have many use cases, I've got a project with a worker and a API server an need to debug both of them at the same time.
I'm also a TS noob so i don't know how to manage multiple terminals.
It's not a huge issue because i don't thinks multiple debug sessions are widely used.
Same here, just a small issue with the Debug Console
view, when launching a second debug session the output is send to the first debug console and not the second.