Home > Back-end >  Response cut short in VSCode (Python)
Response cut short in VSCode (Python)

Time:10-08

I have a Python script that reaches out to an API and generates a large dataset. For some reason, VSCode only displays part of the data in the response. I found the below

enter image description here

And you can configure it with enter into this python file:

...\debugpy\_vendored\pydevd_pydevd_bundle\pydevd_resolver.py

and configured MAX_ITEMS_TO_HANDLE = 300 to other values.

And if you want the PYTHON DEBUG CONSOLE can print the full data, you need to add this in the launch.json file:

"env": {"PYTHONUNBUFFERED": "0" }
  • Related