tht13 / Python-vscode

A Python language pack for Visual Studio Code
MIT License
17 stars 11 forks source link

Python debugger doesn't stop a breakpoints #59

Open DMokry opened 3 years ago

DMokry commented 3 years ago

Issue Type: Performance Issue

My first python script. Created a python environment using Anaconda Navigator 3 python version 3.8.5. Launched VS code from Anaconda Navigator. Opened a new workspace that pointed to the python environment I created in step 1. created a new folder to hold my python project (Hello). Created a two line python program hello.py Set a breakpoint on the second line of the program file. Started debugging by pressing F5. Debugger opens, runs program, pauses briefly at the breakpoint and then finishes normally.

Extension version: 0.2.3 VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z) OS version: Windows_NT x64 10.0.19042

System Info |Item|Value| |---|---| |CPUs|AMD A8-3500M APU with Radeon(tm) HD Graphics (4 x 1497)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|7.48GB (2.06GB free)| |Process Argv|--crash-reporter-id d29a621c-174c-4aaf-ab5c-fa6769e1c6f3| |Screen Reader|no| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 0 78 23380 code main 0 182 732 window (hello.py - Base - Visual Studio Code) 0 95 1004 extensionHost 0 62 6568 electron_node server.js 0 4 10532 cmd /s /c "c:\Users\ddmok\.vscode\extensions\ms-dotnettools.csharp-1.23.9\.omnisharp\1.37.6\OmniSharp.exe -z -s c:\Users\ddmok\anaconda3\envs\Base --hostPID 1004 DotNet:enablePackageRestore=false --encoding utf-8 --loglevel information --plugin c:\Users\ddmok\.vscode\extensions\ms-dotnettools.csharp-1.23.9\.razor\OmniSharpPlugin\Microsoft.AspNetCore.Razor.OmniSharpPlugin.dll FileOptions:SystemExcludeSearchPatterns:0=**/.git FileOptions:SystemExcludeSearchPatterns:1=**/.svn FileOptions:SystemExcludeSearchPatterns:2=**/.hg FileOptions:SystemExcludeSearchPatterns:3=**/CVS FileOptions:SystemExcludeSearchPatterns:4=**/.DS_Store FormattingOptions:EnableEditorConfigSupport=true formattingOptions:useTabs=false formattingOptions:tabSize=4 formattingOptions:indentationSize=4" 0 56 9284 c:\Users\ddmok\.vscode\extensions\ms-dotnettools.csharp-1.23.9\.omnisharp\1.37.6\OmniSharp.exe -z -s c:\Users\ddmok\anaconda3\envs\Base --hostPID 1004 DotNet:enablePackageRestore=false --encoding utf-8 --loglevel information --plugin c:\Users\ddmok\.vscode\extensions\ms-dotnettools.csharp-1.23.9\.razor\OmniSharpPlugin\Microsoft.AspNetCore.Razor.OmniSharpPlugin.dll FileOptions:SystemExcludeSearchPatterns:0=**/.git FileOptions:SystemExcludeSearchPatterns:1=**/.svn FileOptions:SystemExcludeSearchPatterns:2=**/.hg FileOptions:SystemExcludeSearchPatterns:3=**/CVS FileOptions:SystemExcludeSearchPatterns:4=**/.DS_Store FormattingOptions:EnableEditorConfigSupport=true formattingOptions:useTabs=false formattingOptions:tabSize=4 formattingOptions:indentationSize=4 0 6 18832 console-window-host (Windows internal process) 0 71 12448 "C:\Program Files\Microsoft VS Code\Code.exe" "c:\Program Files\Microsoft VS Code\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=1004 0 24 17536 C:\Users\ddmok\anaconda3\envs\Base\python.exe c:\Users\ddmok\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\pyvsc-run-isolated.py c:\Users\ddmok\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\completion.py 0 19 5944 C:\Users\ddmok\anaconda3\envs\Base\python.exe c:\Users\ddmok\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\lib\python\jedi\inference\compiled\subprocess\__main__.py c:\Users\ddmok\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\lib\python 3.8.5 0 11 19424 console-window-host (Windows internal process) 0 6 6652 console-window-host (Windows internal process) 0 7 8032 C:\Users\ddmok\anaconda3\envs\Base\python.exe c:\Users\ddmok\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\lib\python\jedi\inference\compiled\subprocess\__main__.py c:\Users\ddmok\.vscode\extensions\ms-python.python-2021.1.502429796\pythonFiles\lib\python 3.8.5 0 6 21448 console-window-host (Windows internal process) 0 53 8168 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe 0 53 14708 C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe 0 6 15592 console-window-host (Windows internal process) 0 15 16284 watcherService 0 6 3088 console-window-host (Windows internal process) 0 6 20380 console-window-host (Windows internal process) 2 78 1252 shared-process 0 23 6168 crashpad-handler 0 37 10508 utility 0 112 12636 gpu-process 0 77 23032 window (Issue Reporter) ```
Workspace Info ``` | Window (hello.py - Base - Visual Studio Code) | Folder (Base): 11443 files | File types: py(3336) pyc(3296) h(494) tcl(252) hpp(245) txt(145) | msg(145) dll(141) json(131) pyd(91) | Conf files: cmake(9) makefile(2) launch.json(1) settings.json(1) | Launch Configs: python; ```
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 openlogontheside:30221877 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30211402 wsl2prompt:30224612 pythonvsdeb440:30248342 unusedpromptcf:30224611 folderexplorercf:30224615 openfilemenu:30224647 pythonvsded773:30248341 pythonvspyt875:30251590 ```