Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support some way of launching without debugging like Visual Studio #3209

Closed
felixfbecker opened this issue Feb 21, 2016 · 1 comment
Closed
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality

Comments

@felixfbecker
Copy link
Contributor

In Visual Studio, you can press Ctrl+F5 to launch the application without a debugger attached, which i befinicial for performance reasons. For VS Code this would be very helpful, because you don't always want to actually debug a file or actually cannot because there is no debug adapter extension out there yet. Currently, you have to define a "launch" task, which cannot get a keyboard shortcut. Having "Launch without debugging" would be much more semantically correct.

  • Introduce a new action in command palette "Launch without debuggin" with keyboard shortcut Ctrl+F5
  • If the currently selected configuration has type set, send the debug adapter a launchRequest with the additional argument debug: false
  • Make the debug setting type optional. If a configuration does not have a type, it can only be launched without debugging:
    • If runtimeExecutable is set, spawn the runtime executable (java, bash, ...) with the runtimeArguments, program and args.
      Otherwise spawn program with args directly (like a .exe or .bat)
    • program should be allowed to drop the file extension (java needs this for example)
    • Put stdout on the debug console and send input on the debug console to stdin
    • If externalConsole is true, run the script in an external console
    • Support preLaunchTask

Examples:

{
  "name": "Run currently open script",
  "runtimeExecutable": "bash",
  "program": "${file}"
}
{
  "name": "Launch",
  "runtimeExecutable": "java",
  "program": "${workspaceRoot}/MyClass",
  "preLaunchTask": "compile"
}
@egamma egamma added feature-request Request for new features or functionality debug Debug viewlet, configurations, breakpoints, adapter issues labels Feb 21, 2016
@weinand
Copy link
Contributor

weinand commented Feb 22, 2016

duplicate of #2780

@weinand weinand closed this as completed Feb 22, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants