microsoft / microsoft/vscode-cpptools

[Feature Request] Support RunInTerminal Environment Variables

Open
#5,233 2 comments 0 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

After updating the extension to 0.27.0 I am unable to debug C++ any more. The debugging works fine in version 0.26.3. I get error: "During startup program exited with code 0xc0000135"
My guess is that the updated extension ignores the "environment" setting from launch.json, as update to the Path variable is no longer visible in the terminal command when I invoke the debugging session, it was visible for 0.26.3.
I am compiling using MinGW 5.3.0 included in Qt 5.9.6 and using GDB from the same toolchain.

Likely not related to issue #5221, as my problem only applies to the new version

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

Reproduce the C++ debugging failure in VS Code extension 0.27.0 with the launch.json environment setting, then compare it with 0.26.3. Trace the RunInTerminal handling and verify that the Path value is passed into the terminal command so the MinGW/GDB session starts successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.