microsoft / ptvsd

Python debugger package for use with Visual Studio and Visual Studio Code.
Other
548 stars 68 forks source link

Print-function prints only None in Debug Console Despite Setting "redirectoutput" as true #2086

Closed ruizhuanguw closed 4 years ago

ruizhuanguw commented 4 years ago

Issue Type: Bug

I edited the lanch.json and explicitly specify "redirectOutput": true. However, print-function still prints None in Debug Console and no print output in terminal either.

Extension version: 2020.2.63072 VS Code version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:45:59.656Z) OS version: Windows_NT x64 10.0.18363

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.84GB (21.09GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
int19h commented 4 years ago

Can you share your entire debug configuration from launch.json, and ptvsd version number? (import ptvsd; print(ptvsd.__version__))

int19h commented 4 years ago

Closing due to lack of follow-up.