Debug launch freezes first time if envfile contents are long
See original GitHub issueEnvironment 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:
- 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
- Set this file as
envFile
in yourlaunch.json
and start debugging. - First time it hangs. Only half the contents are transferred to terminal.
- Do a ctrl + C and relaunch the debugging, it runs smoothly.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DonJayamanne please have a look and remove
info needed
label, if information is sufficientStill 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.