Skip to content

Debug launch freezes first time if envfile contents are long #3560

@jahan01

Description

@jahan01

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

Metadata

Metadata

Assignees

Labels

area-debuggingbugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions