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

Malformed env variables in debug mode using integrated terminal #277

Closed
bcanseco opened this issue May 2, 2018 · 2 comments
Closed

Malformed env variables in debug mode using integrated terminal #277

bcanseco opened this issue May 2, 2018 · 2 comments

Comments

@bcanseco
Copy link

bcanseco commented May 2, 2018

I have emailed my zipped logs to vsls-feedback@microsoft.com

Product and Version [VS/VSCode]: VSCode 1.22.2
OS Version [macOS/Windows]: macOS 10.13.4
Live Share Extension Version: 0.2.547
Target Platform or Language [e.g. Node.js]: Node.js

Brief description:
If you start the VS Code debugger with console set to integratedTerminal, then it looks like any variables in the env dictionary are sent to the shell with weird casing.

cd /vsls-repro ; env "nodE_ENV=development" /usr/local/bin/node --inspect-brk=29328 app.js

With VS Live Share disabled:

cd /vsls-repro ; env "NODE_ENV=development" /usr/local/bin/node --inspect-brk=19467 app.js

Steps to Reproduce / Scenario:

  1. git clone https://github.com/bcanseco/vsls-repro
  2. cd vsls-repro
  3. code .
  4. Verify that the VS Live Share extension is installed and enabled (disable any others)
  5. CMD+SHIFT+D (or click the Debug button)
  6. Start debugging the Launch Program configuration
  7. Observe that Should be true: false was outputted in the integrated terminal.
  8. Open .vscode/launch.json and make the following change:
-"console": "integratedTerminal",
+"console": "internalConsole",
  1. Start debugging the edited Launch Program configuration.
  2. Observe that Should be true: true was outputted in the debug console.
  3. Disable the VS Live Share extension and reload VS Code.
  4. Repeat steps 5-10 and observe that Should be true: true is logged in both scenarios.
@lostintangent
Copy link
Member

@bcanseco Thanks for reporting this, and providing such a thorough repro. We haven’t seen this issue before, but will look it using the logs you sent. Stay tuned!

@lostintangent
Copy link
Member

This has been fixed in the latest extension release. Let us know if it still repros after you update. Thanks again for reporting it!

learn-build-service-prod bot pushed a commit that referenced this issue Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants