简体   繁体   中英

Running python script in VSCode produces truncated output

Steps to reproduce:

my_list = []
for i in range(0,100000):
    my_list.append(i)
print(my_list)

Running this (Run-> Run without debugger [or with it]) produces a truncated output on my VSCode in version 1.55 with up to date python extension (v2020.10.332292344) and python 3.9.4.

"Run Python File in Terminal" (via command palette) shows the whole output correctly (but with this the script's working directory isn't the script's directory; my original problem was about reading a csv file where i noticed said problem).

(I already set Python › Data Science: Text Output Limit to 0).

So how to fix this issue?

According to the information you provided, I reproduced the problem and I have submitted it. You could follow the progress of this link: VS Code's debug console cannot display complete data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM