question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add "Disconnect single session" command

See original GitHub issue

This needs some explanation and what I do isn’t as wrong as the title suggests: I have ~/Code/vscode for our sources and I have ~/Code/_samples/dummy-extension in which I try out and test API. The extension is sym-linked into ~/.vscode-oss-dev/extensions. This allows me to make changes in the extension and VS Code itself and easily test things

  • from vscode run/debug VS Code (it debugs everything: main, renderer, ext-host
  • in dummy-extension set a breakpoint in some extension code (where else)
  • from dummy-extension attach to extension host (to apply those breakpoints)
  • run the code, hit the breakpoint, and step in/out/over
  • 😕 the windows randomly change focus, both are debugging the extension host (naturally)

I don’t know how you would implement this but the window at which breakpoint was most recently hit should be the active one

https://user-images.githubusercontent.com/1794099/185606414-e99243f8-2c34-44f3-afbb-d46fd900241b.mov

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
roblourenscommented, Aug 22, 2022

I’d recommend not attaching to the EH process in the vscode window (you will need to change launch.json for this or add your own config which you could do in a workspace) or you can disable debug.focusWindowOnBreak in the vscode window. I think that doing exactly what you want will be really complicated.

0reactions
VSCodeTriageBotcommented, Aug 31, 2022

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

about Remote Disconnected Sessions - PowerShell
To create a disconnected session, use the InDisconnectedSession parameter of the Invoke-Command cmdlet. It creates a session, starts the command ...
Read more >
Scripting - How to disconnect Remote Desktop sessions?
The TSDiscon command will disconnect terminal services (RDP) sessions. Used on its own will disconect the current session, ...
Read more >
PowerShell disconnected remote sessions - 4sysops
If multiple sessions are running on the remote computer, the above command will connect them all to your current session. Once you are...
Read more >
How to set time limit for disconnected sessions Windows ...
In each user's properties window, under sessions tab, you can change the default of “end a disconnected session” from NEVER to X hours/days...
Read more >
Logoff Remote Desktop Sessions from the Command Line
This will show you a list of all sessions logged into that server. If you want to logoff one of these sessions, run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found