vscode-rdbg icon indicating copy to clipboard operation
vscode-rdbg copied to clipboard

Only one debug session can be active at a time

Open BenjaminDigeon opened this issue 3 years ago • 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 ?

BenjaminDigeon avatar Jun 15 '22 08:06 BenjaminDigeon

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.

ko1 avatar Jun 25 '22 19:06 ko1

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.

BenjaminDigeon avatar Jun 30 '22 07:06 BenjaminDigeon

I believe this should be closed. version 0.1.0 includes both #56 and #91

firien avatar Jan 02 '23 15:01 firien

image I can get multiples opened at once now too.

cshupp1 avatar Mar 13 '23 16:03 cshupp1

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.

BenjaminDigeon avatar Mar 14 '23 11:03 BenjaminDigeon