microsoft / microsoft/vscode-cpptools

[OS X] Open external terminal launch/debug with correct Terminal

Open
#390 17 comments 26 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger Feature Request
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

  • VSCode Version: 1.7.2 - 7ba55c5
  • OS Verson: macOS Sierra 10.12.1
  • C/C++ for VIsual Studio Code Verison: 0.9.2

When debugging/launching your code, VSC doesn't use your external terminal preference set in settings.json. The same issues was opened under vscode repo and in the discussion, we clarified that the launch.json and the expected behavior is related to the specific debugger rather than the vscode itself.

Steps to Reproduce:

  1. In your settings.json, set your terminal to a different one. e.g. for OSX, use:
    // Customizes which terminal application to run on OS X.
   "terminal.external.osxExec": "iTerm.app"
  1. In launch.json, set an action with "externalConsole": true

  2. Start debugging/running your application

Your application will run in the default Terminal.app

Expected behavior:

The last step should respect your preferences

The Node debugger already deprecated the externalConsole replaced with console. I think the C++ debugger should consider the preferences before launching the external console.

Link to OP

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the launch.json externalConsole setting and the settings.json terminal.external.osxExec preference described in the issue. Trace how the C++ debugger launches an external console on macOS, then verify that selecting iTerm.app is respected when debugging or running with externalConsole enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos, typescript
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.