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.

ability to get/set currently selected debug configuration

See original GitHub issue

Currently, we can run vscode.debug.startDebugging(workspaceFolder, configName) to run the debugger from the extension. Is there a way to change currently selected debug configuration from the extension? Something like vscode.debug.changeCurrentDebugger(workspaceFolder, configName) would be very helpful.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:25
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
GordonSmithcommented, Oct 15, 2019

@weinand I would like to see:

  • workspace.getDebugLaunchName
  • workspace.setDebugLaunchName
  • workspace.onDidDebugLaunchNameChange

Since we already can get and modify the actual configurations, this about being notified when the user selects a new one and being able to get / set the current one.

Use Case 1 We have the concept of a “Platform” which has many configurations and when submitting code to it, it can be submitted to: run, compile or debug. Currently we achieve this by having many launch “similar” configurations, but the permutations add up.
So when the user changes launch configuration, it would be good if we were notified so that we could query the server for the list of “queues” and then display that in the status bar (the user can then click to change queue, like they change file type currently).

Use Case 2 For our language it would make sense to remember the launch config used with a specific file and this would simplify the process

4reactions
VSCodeTriageBotcommented, Aug 9, 2022

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging in Visual Studio Code
To run or debug a simple app in VS Code, select Run and Debug on the Debug start view or press F5 and...
Read more >
SRDebugger Documentation | Stompy Robot
Use Debug Camera, By default, SRDebugger uses the Overlay render mode. If this option is selected, SRDebugger will create a camera with the...
Read more >
Manual: How to get, set, and configure the active render pipeline
Select Edit > Project Settings > Graphics. Drag the Render Pipeline Asset on to the Scriptable Render Pipeline Setting field. Optional: Set override...
Read more >
Set debug and release configurations - Visual Studio (Windows)
From the Build menu, select Configuration Manager, then select Debug or Release. Generate symbol (.pdb) files for a build (C#, C++, Visual Basic ......
Read more >
How come I cannot see my System.Debug statements in the ...
I already have the appropriate setting and can see the debug log, ... and after clicking renew button in debug logs, I was...
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