Skip to content

weird behavior of "Debug Test" using pytest #21833

@ladyrick

Description

@ladyrick

Type: Bug

When I right click the pytest mark and select "Debug Test", the behavior is wierd.
iShot_2023-08-17_21 21 23

The first time I do this, the DEBUG CONSOLE panel is opened like this. This is the expected behavior.
iShot_2023-08-17_21 21 05

But the second time I do this, the TEST RESULTS (instead of DEBUG CONSOLE) panel is opened like this. This is not the expected behavior. This is just like the behavior of "Run Test" (instead of "Debug Test").
iShot_2023-08-17_21 20 22

Usually I want to see the output of the print in the test function. So I like to use "Debug Test". This bug really bothers me.

By the way, why there is a large blank area in the middle of TEST RESULTS panel? I think this is also a bug. This "thing" shows when I kill the TEST RESULTS panel and use "Run Test" again.

Extension version: 2023.14.0
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:40:25.698Z)
OS version: Darwin arm64 22.5.0
Modes:
Remote OS version: Linux x64 5.4.119-19-0009.11

System Info
Item Value
CPUs Apple M1 Pro (10 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 1, 2, 2
Memory (System) 32.00GB (3.44GB free)
Process Argv
Screen Reader no
VM 0%
Item Value
Remote SSH: devbox
OS Linux x64 5.4.119-19-0009.11
CPUs AMD EPYC 7K83 64-Core Processor (32 x 2545)
Memory (System) 61.57GB (57.42GB free)
VM 0%

Metadata

Metadata

Assignees

Labels

area-testinginfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions