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.

Debug launch freezes first time if envfile contents are long

See original GitHub issue

Environment data

  • VS Code version: 1.29.1
  • Extension version (available under the Extensions sidebar): 2018.11.0
  • OS and version: OSX 10.14.1
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda

Expected behaviour

Debugger should launch the program and start debugging

Actual behaviour

Launch sends only half contents to terminal and freezes. If you do a control C and relaunch debugger it runs smoothly. The issue happens only if the integrated terminal is created for the first time. When it reuses the exiting terminal, there is no issue.

Steps to reproduce:

  1. Have a some what long content in envfile. Something like below .env
testenv1=testvar_testvar_testvar_testvar_testvar_testvar_testvar_testvar1
testenv2=testvar_testvar_testvar_testvar_testvar_testvar_testvar_testvar2
testenv3=testvar_testvar_testvar_testvar_testvar_testvar_testvar_testvar3
testenv4=testvar_testvar_testvar_testvar_testvar_testvar_testvar_testvar4
testenv5=testvar_testvar_testvar_testvar_testvar_testvar_testvar_testvar5
testenv6=testvar_testvar_testvar_testvar_testvar_testvar_testvar_testvar6
testenv7=testvar_testvar_testvar_testvar_testvar_testvar_testvar_testvar7
testenv8=testvar_testvar_testvar_testvar_testvar_testvar_testvar_testvar8
testenv9=testvar_testvar_testvar_testvar_testvar_testvar_testvar_testvar9
  1. Set this file as envFile in your launch.json and start debugging.
  2. First time it hangs. Only half the contents are transferred to terminal.
  3. Do a ctrl + C and relaunch the debugging, it runs smoothly.

vscode debugger gif

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
jahan01commented, Dec 22, 2018

@DonJayamanne please have a look and remove info needed label, if information is sufficient

0reactions
DonJayamannecommented, Jan 8, 2019

Still unable to replicate. Tried with 1,000,000 characters, and 20 variables. Unfortunately I’m going to have to close this, as I’m unable to replicate this at my end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging stops working when the .env file has more than ...
Type more than 556 characters in .env file (sum of var names, values, etc). ... The first time I try to run debugger...
Read more >
vscode debugging xUnit test - ignoring envFile from launch.json
I'm storing those variables in .env file, in the workspace root folder. If I load that file content in my shell and then...
Read more >
15.8.0 debug freezes - Visual Studio Feedback
This is on Windows 7. I can build and launch a program, but if I try to step, or if I hit a...
Read more >
Allow environment variables to load from .env file : PY-5543
I was tired of updating my debug configurations with new environment variables every time my (short-lived, MFA-required) AWS session tokens expired, so I...
Read more >
Using Environment Variables in Node.js for App Configuration ...
When debugging your application because it is misconfigured (and trust me, it's only a matter of time), the removal of defaults means every ......
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