Description
Type: Bug
Behaviour
Debugger never effectively launches, and appears to hang with a "spinning circle"
Steps to reproduce:
SPECIFICALLY: BRANCH: "BUG_06-15-2025
-
Create a VENV, execute the script: "create_venv.sh"
-
Launch VSCODE - open the directory.
-
The BEAKER should show up, click: RUN all existing unit tests run and pass :-) [I have more to write, and I am not done]
-
In the directory ${PROJ_ROOT}/tools/py_modules/pmake/ - pick any "test_*.py" file
all of these are based on UNIT TEST and set a break point on any of the tests.
Set a breakpoint in on/any test and attempt to run that test case.
PROBLEM: You cannot - it hangs and does not complete. you get an "endless spinning circle" and the "test elapsed time" never stops counting up.
WORK AROUND: DO not use the debugger, instead use print statements.
Once VSCODE is "locked up" - one must exit and restart VS CODE
Terminal Window Detail?
venvDuanes-MacBook-Pro-2:BUG_06-15-2025 duane$ which python
/Users/duane/BUG_06-15-2025/venv/bin/python
venvDuanes-MacBook-Pro-2:BUG_06-15-2025 duane$ python --version
Python 3.13.5
venvDuanes-MacBook-Pro-2:BUG_06-15-2025 duane$
-->> The above shows that I have a VENV setup with Python 3.13.5
BUT - BELOW - it seems to sometimes show "python3.9" - why? I do not know.
OUTPUT window:
2025-06-15 20:13:00.037 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-06-15 20:13:00.037 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-06-15 20:13:00.037 [warning] Dir "/Users/duane/BUG_06-15-2025/.pixi/envs" is not watchable (directory does not exist)
2025-06-15 20:13:00.037 [info] Python interpreter path: ./venv/bin/python
2025-06-15 20:13:00.037 [info] > pyenv which python
2025-06-15 20:13:00.037 [info] cwd: .
2025-06-15 20:13:00.137 [info] > conda info --json
2025-06-15 20:13:00.222 [info] > . ./venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2025.6.1-darwin-x64/python_files/printEnvVariables.py
2025-06-15 20:13:00.222 [info] shell: bash
2025-06-15 20:13:00.489 [info] > /opt/local/bin/python3.9 ~/.vscode/extensions/ms-python.python-2025.6.1-darwin-x64/python_files/printEnvVariables.py
2025-06-15 20:13:00.489 [info] shell: bash
2025-06-15 20:13:00.546 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/duane/BUG_06-15-2025/venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-06-15 20:13:00.546 [info] Prepending environment variable PATH in collection with /Users/duane/.vscode/extensions/ms-python.python-2025.6.1-darwin-x64/python_files/deactivate/bash:/Users/duane/BUG_06-15-2025/venv/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-06-15 20:13:00.546 [info] Prepending environment variable PS1 in collection with venv {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-06-15 20:13:00.547 [info] Setting environment variable XPC_SERVICE_NAME in collection to 0 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-06-15 20:13:00.547 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-06-15 20:13:00.548 [info] Send text to terminal: /opt/local/bin/python3.9 /Users/duane/.vscode/extensions/ms-python.python-2025.6.1-darwin-x64/python_files/printEnvVariablesToFile.py /Users/duane/.vscode/extensions/ms-python.python-2025.6.1-darwin-x64/python_files/deactivate/bash/envVars.txt
2025-06-15 20:13:01.464 [info] Starting Pylance language server.
Extension version: 2025.8.0
VS Code version: Code 1.101.0 (dfaf44141ea9deb3b4096f7cd6d24e00c147a4b1, 2025-06-11T15:00:50.123Z)
OS version: Darwin x64 24.5.0
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.13.5
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): VirtualEnvironment
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz (16 x 2300) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
Load (avg) | 2, 3, 2 |
Memory (System) | 32.00GB (2.34GB free) |
Process Argv | --crash-reporter-id dc6440a0-e564-4adb-8220-6b008031e910 |
Screen Reader | no |
VM | 0% |
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupytercf:31046870
pythonrstrctxt:31112756
nativeloc2:31192216
5fd0e150:31155592
dwcopilot:31170013
471b6256:31263136
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31314491
5b33h341:31326279
pythonpulldiagcf:31325931
996jf627:31283433
pythonrdcb7:31303018
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
6518g693:31325878
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004
d784b465:31327030
i851h500:31328299
82j33506:31327384
Output of the "printEnvVariables.py" - (above) seems to not output anything.
manually running this I get this:
(venv) Duanes-MacBook-Pro-2:BUG_06-15-2025 duane$
(venv) Duanes-MacBook-Pro-2:BUG_06-15-2025 duane$
(venv) Duanes-MacBook-Pro-2:BUG_06-15-2025 duane$ . ./venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2025.6.1-darwin-x64/python_files/printEnvVariables.py
e8b39361-0157-4923-80e1-22d70d46dee6
{"TERM_PROGRAM": "Apple_Terminal", "SHELL": "/bin/bash", "TERM": "xterm-256color", "BASHRC_SOURCED_b202402d9f69454a99540dd553dd8120": "1", "TMPDIR": "/var/folders/kq/r5f61b217kq6_zfb_g746z100000gn/T/", "TERM_PROGRAM_VERSION": "455.1", "OLDPWD": "/Users/duane", "TERM_SESSION_ID": "E84D8C95-0615-4D8C-89DC-B66DEDD40279", "USER": "duane", "SSH_AUTH_SOCK": "/private/tmp/com.apple.launchd.cW4PuT1874/Listeners", "BASH_SILENCE_DEPRECATION_WARNING": "1", "VIRTUAL_ENV": "/Users/duane/BUG_06-15-2025/venv", "PATH": "/Users/duane/BUG_06-15-2025/venv/bin:/Library/Frameworks/Python.framework/Versions/3.13/bin:/Users/duane/bin:/Users/duane/Library/Python/3.8/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands", "__CFBundleIdentifier": "com.apple.Terminal", "PWD": "/Users/duane/BUG_06-15-2025", "LANG": "en_US.UTF-8", "XPC_FLAGS": "0x0", "PS1": "(venv) \\h:\\W \\u\\$ ", "XPC_SERVICE_NAME": "0", "SHLVL": "1", "HOME": "/Users/duane", "IDF_PATH": "/Users/duane/ESP32/esp-idf", "LOGNAME": "duane", "DISPLAY": "/private/tmp/com.apple.launchd.io6Mbv04vV/org.macports:0", "VIRTUAL_ENV_PROMPT": "venv", "_": "/Users/duane/BUG_06-15-2025/venv/bin/python", "__CF_USER_TEXT_ENCODING": "0x1F5:0x0:0x0"}
(venv) Duanes-MacBook-Pro-2:BUG_06-15-2025 duane$