8000 Debugger: setting "justMyCode": false does not work in a Python 3.10 venv · Issue #139 · microsoft/vscode-python-debugger · GitHub
[go: up one dir, main page]

Skip to content
Debugger: setting "justMyCode": false does not work in a Python 3.10 venv #139
Closed
@k98kurz

Description

@k98kurz

Type: Bug

Behaviour

Expected vs. Actual

Expected: setting "justMyCode": false within the autogenerated launch.json file should allow the debugger to step through imported code.

Actual: setting "justMyCode": false within the autogenerated launch.json file results in the same "frame skipped" message that says to set "justMyCode": false within the autogenerated launch.json file.

Steps to reproduce:

  1. Create and use a python venv.
  2. Install a package via pip.
  3. Create a script, importing that package and calling a function from it.
  4. Debug and try to step into the package function call.
  5. See the "frame was skipped" message and set the "justMyCode" option to false in the launch.json file.
  6. See the "frame was skipped" message anyway because setting "justMyCode" to false does not work.

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.12
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2023-08-13 23:50:01.241 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-08-13 23:50:01.241 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-08-13 23:50:01.241 [info] Experiment 'pythonSurveyNotificationcf' is active
2023-08-13 23:50:01.241 [info] Experiment 'pythonTestAdapter' is active
2023-08-13 23:50:01.241 [info] VS Code was launched from an activated environment: 'venv2', selecting it as the interpreter for workspace.
2023-08-13 23:50:01.241 [info] Test server listening.
2023-08-13 23:50:01.318 [warning] Retry failed, storage update failed for key PYTHON_GLOBAL_STORAGE_KEYS
2023-08-13 23:50:01.318 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-08-13 23:50:01.318 [warning] Retry failed, storage update failed for key PYTHON_WORKSPACE_STORAGE_KEYS
2023-08-13 23:50:01.363 [info] > conda info --json
2023-08-13 23:50:01.412 [info] > ./venv2/bin/python -I ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-08-13 23:50:01.433 [info] > ./venv/bin/python -I ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-08-13 23:50:01.461 [info] Python interpreter path: ./venv2/bin/python
2023-08-13 23:50:01.532 [info] > . ./venv2/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/printEnvVariables.py
2023-08-13 23:50:01.532 [info] shell: bash
2023-08-13 23:50:01.533 [warning] Retry failed, storage update failed for key PYTHON_ENV_INFO_CACHE
2023-08-13 23:50:01.535 [warning] Retry failed, storage update failed for key PYTHON_ENV_INFO_CACHE
2023-08-13 23:50:01.535 [warning] Retry failed, storage update failed for key PYTHON_ENV_INFO_CACHE
2023-08-13 23:50:01.535 [warning] Retry failed, storage update failed for key PYTHON_ENV_INFO_CACHE
2023-08-13 23:50:01.535 [warning] Retry failed, storage update failed for key PYTHON_ENV_INFO_CACHE
2023-08-13 23:50:02.211 [warning] Retry failed, storage update failed for key PYTHON_ENV_INFO_CACHE
2023-08-13 23:50:02.230 [warning] Retry failed, storage update failed for key PYTHON_ENV_INFO_CACHE
2023-08-13 23:50:03.323 [info] Starting Pylance language server.
2023-08-13 23:50:17.132 [info] Discover tests for workspace name: tapescript-maths - uri: /home/usernameredacted/temp/tapescript-maths/run.py
2023-08-13 23:50:32.923 [info] Using launch configuration in workspace folder.
2023-08-13 23:50:33.155 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:50:33.320 [info] Send text to terminal: source /home/usernameredacted/temp/tapescript-maths/venv2/bin/activate
2023-08-13 23:50:34.589 [info] Send text to terminal:  /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 33839 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:51:41.276 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:51:41.348 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 49003 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:52:00.391 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:52:00.493 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 56031 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:53:53.332 [info] Using launch configuration in launch.json file.
2023-08-13 23:53:53.533 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:53:53.609 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 54021 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:55:06.904 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:55:06.995 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 55607 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:56:19.203 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:56:19.292 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 37621 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:56:29.977 [info] Using launch configuration in launch.json file.
2023-08-13 23:56:30.152 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:56:30.421 [info] Send text to terminal: source /home/usernameredacted/temp/tapescript-maths/venv2/bin/activate
2023-08-13 23:56:31.443 [info] Send text to terminal:  /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 39985 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:56:48.421 [info] Using launch configuration in launch.json file.
2023-08-13 23:56:48.606 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:56:48.680 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 46123 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:57:23.368 [info] Using launch configuration in launch.json file.
2023-08-13 23:57:23.581 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:57:23.653 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 40395 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:57:53.293 [info] Using launch configuration in launch.json file.
2023-08-13 23:57:53.487 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:57:53.562 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 41769 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-13 23:59:19.054 [info] Using launch configuration in launch.json file.
2023-08-13 23:59:19.238 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-13 23:59:19.309 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 34801 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-14 00:06:03.514 [info] Found: /bin/python --> /bin/python
2023-08-14 00:06:03.515 [info] Found: /bin/python3 --> /bin/python3.10
2023-08-14 00:06:03.515 [info] Found: /bin/python3.10 --> /bin/python3.10
2023-08-14 00:06:03.515 [info] Found: /bin/python3.11 --> /bin/python3.11
2023-08-14 00:06:03.543 [info] Found: /usr/bin/python --> /usr/bin/python
2023-08-14 00:06:03.543 [info] Found: /usr/bin/python3 --> /usr/bin/python3.10
2023-08-14 00:06:03.543 [info] Found: /usr/bin/python3.10 --> /usr/bin/python3.10
2023-08-14 00:06:03.543 [info] Found: /usr/bin/python3.11 --> /usr/bin/python3.11
2023-08-14 00:06:03.566 [info] Found: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python --> /usr/bin/python3.10
2023-08-14 00:06:03.567 [info] Found: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python3 --> /usr/bin/python3.10
2023-08-14 00:06:03.568 [info] Found: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python3.10 --> /usr/bin/python3.10
2023-08-14 00:06:03.586 [info] > /bin/python -I ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-08-14 00:06:03.606 [info] > /bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-08-14 00:06:03.639 [info] > /bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-08-14 00:06:03.693 [info] > /usr/bin/python -I ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-08-14 00:06:03.762 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-08-14 00:06:03.791 [info] > /usr/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/interpreterInfo.py
2023-08-14 00:06:21.554 [info] Discover tests for workspace name: tapescript-maths - uri: /home/usernameredacted/temp/tapescript-maths/run.py
2023-08-14 00:06:35.127 [info] Using launch configuration in launch.json file.
2023-08-14 00:06:35.318 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-14 00:06:35.571 [info] Send text to terminal: source /home/usernameredacted/temp/tapescript-maths/venv2/bin/activate
2023-08-14 00:06:36.593 [info] Send text to terminal:  /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 52509 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-14 00:07:02.967 [info] Using launch configuration in launch.json file.
2023-08-14 00:07:03.150 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-14 00:07:03.368 [info] Send text to terminal: source /home/usernameredacted/temp/tapescript-maths/venv2/bin/activate
2023-08-14 00:07:04.393 [info] Send text to terminal:  /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 48405 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-14 00:12:22.084 [info] Using launch configuration in launch.json file.
2023-08-14 00:12:22.265 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-14 00:12:22.521 [info] Send text to terminal: source /home/usernameredacted/temp/tapescript-maths/venv2/bin/activate
2023-08-14 00:12:23.543 [info] Send text to terminal:  /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 57813 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-14 00:13:02.369 [info] Using launch configuration in launch.json file.
2023-08-14 00:13:02.562 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-14 00:13:02.635 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 59641 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-14 00:13:31.161 [info] Using launch configuration in launch.json file.
2023-08-14 00:13:31.334 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-14 00:13:31.406 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 41041 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-14 00:14:53.488 [info] Using launch configuration in launch.json file.
2023-08-14 00:14:53.672 [info] DAP Server launched with command: /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter
2023-08-14 00:14:53.747 [info] Send text to terminal:  cd /home/usernameredacted/temp/tapescript-maths ; /usr/bin/env /home/usernameredacted/temp/tapescript-maths/venv2/bin/python /home/usernameredacted/.vscode/extensions/ms-python.python-2023.14.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 60763 -- /home/usernameredacted/temp/tapescript-maths/run.py 
2023-08-14 10:08:31.728 [info] Send text to terminal: source /home/usernameredacted/temp/tapescript-maths/venv2/bin/activate
2023-08-14 12:01:36.582 [info] Discover tests for workspace name: tapescript-maths - uri: /home/usernameredacted/temp/tapescript-maths/venv2/lib/python3.10/site-packages/~apescript/interfaces.py

User Settings


languageServer: "Pylance"

Extens 6A10 ion version: 2023.14.0
VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:18:39.991Z)
OS version: Linux x64 6.2.0-26-generic snap
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 3051)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
Load (avg) 0, 1, 1
Memory (System) 31.20GB (25.15GB free)
Process Argv --no-sandbox --force-user-env --unity-launch --crash-reporter-id 8288fe70-1d22-4ecb-a399-2ca5eb4778fd
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes516:30244333
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30792226
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30803844
3biah626:30602489
f6dab269:30613381
showlangstatbar:30737416
03d35959:30757346
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
gsofa:30804715
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0