Skip to content

Python Debugger Keeps Moving the Text Cursor to End of Line #979

@WordlessMeteor

Description

@WordlessMeteor

Type: Bug

Behaviour

When a debug was performed, the cursor kept blinking once the mouse cursor moved. And once I left clicked the mouse, the text cursor would always pop to the end of the clicked line.

Steps to reproduce:

  1. Debug a Python Program.
  2. Once the debug starts, when the color theme changes, click on a line.

Diagnostic data

launch.json configuration

This file doesn't exist in the current working directory.

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2026-03-15 10:50:36.477 [info] 试验“pythonSurveyNotificationcf”处于活动状态
2026-03-15 10:50:36.477 [info] Native locator: Refresh started
2026-03-15 10:50:36.477 [info] Native locator: Refresh finished in 1239 ms
2026-03-15 10:50:36.486 [info] Skipping ActivatedEnv Detection:  process.env.VSCODE_CLI !== '1'
2026-03-15 10:50:36.559 [info] > conda info --json
2026-03-15 10:50:36.569 [info] Python 解释器路径: ~\AppData\Local\Programs\Python\Python314\python.exe
2026-03-15 10:50:36.706 [info] > pyenv which python
2026-03-15 10:50:36.706 [info] cwd: .
2026-03-15 10:50:40.159 [info] 正在启动 Pylance 语言服务器。
2026-03-15 10:51:59.423 [info] 试验“pythonSurveyNotificationcf”处于活动状态
2026-03-15 10:51:59.423 [info] Native locator: Refresh started
2026-03-15 10:51:59.502 [info] Native locator: Refresh finished in 970 ms
2026-03-15 10:51:59.562 [info] Skipping ActivatedEnv Detection:  process.env.VSCODE_CLI !== '1'
2026-03-15 10:51:59.590 [info] > conda info --json
2026-03-15 10:51:59.611 [info] > pyenv which python
2026-03-15 10:51:59.611 [info] cwd: .
2026-03-15 10:51:59.614 [info] Python 解释器路径: ~\AppData\Local\Programs\Python\Python314\python.exe
2026-03-15 10:52:02.956 [info] 正在启动 Pylance 语言服务器。
2026-03-15 11:51:01.473 [info] Send text to terminal: python -u "c:\Users\19250\Documents\GitHub\LoL-DIY-Programs\Customized Program 14 - Vie An Open Lobby's Seat.py"
2026-03-15 11:51:12.666 [info] Send text to terminal: python -u "c:\Users\19250\Documents\GitHub\LoL-DIY-Programs\Customized Program 14 - Vie An Open Lobby's Seat.py"
2026-03-15 11:52:09.797 [info] Send text to terminal: python -u "c:\Users\19250\Documents\GitHub\LoL-DIY-Programs\Customized Program 14 - Vie An Open Lobby's Seat.py"
2026-03-15 11:52:40.454 [info] Send text to terminal:  & 'c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' 'c:\Users\19250\.vscode-insiders\extensions\ms-python.debugpy-2025.19.2026030601-win32-x64\bundled\libs\debugpy\launcher' '10426' '--' 'C:\Users\19250\Documents\GitHub\LoL-DIY-Programs\Customized Program 14 - Vie An Open Lobby''s Seat.py' 
2026-03-15 11:56:55.402 [info] Send text to terminal: �
2026-03-15 11:56:55.610 [info] Send text to terminal:  c:; cd 'c:\Users\19250\Documents\GitHub\LoL-DIY-Programs'; & 'c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' 'c:\Users\19250\.vscode-insiders\extensions\ms-python.debugpy-2025.19.2026030601-win32-x64\bundled\libs\debugpy\launcher' '13331' '--' 'C:\Users\19250\Documents\GitHub\LoL-DIY-Programs\Customized Program 14 - Vie An Open Lobby''s Seat.py' 

Output for Python Debugger in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python Debugger)

2026-03-15 11:52:39.196 [info] resolveDebugConfigurationWithSubstitutedVariables: resolving interpreter for program='C:\Users\19250\Documents\GitHub\LoL-DIY-Programs\Customized Program 14 - Vie An Open Lobby's Seat.py'
2026-03-15 11:52:39.209 [info] legacyGetInterpreterDetails: executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' resource='c:\Users\19250\Documents\GitHub\LoL-DIY-Programs\Customized Program 14 - Vie An Open Lobby's Seat.py'
2026-03-15 11:52:39.210 [info] resolveDebugConfigurationWithSubstitutedVariables: setting debugConfiguration.python='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:52:39.210 [info] Resolving launch configuration with substituted variables
2026-03-15 11:52:39.245 [info] createDebugAdapterDescriptor: request='launch' name='Python 调试程序: 当前文件'
2026-03-15 11:52:39.245 [info] legacyGetInterpreterDetails: executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' resource='c:\Users\19250\Documents\GitHub\LoL-DIY-Programs'
2026-03-15 11:52:39.246 [info] legacyResolveEnvironment: Resolving environment 'c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:52:39.255 [info] legacyResolveEnvironment: Resolved executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:52:39.255 [info] resolveEnvironment: legacy resolved executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' version='3.14.3'
2026-03-15 11:52:39.255 [info] getExecutableCommand: executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' version='3.14.3'
2026-03-15 11:52:39.256 [info] createDebugAdapterDescriptor: python command parts='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:52:39.256 [info] DAP Server launched with command: c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe c:\Users\19250\.vscode-insiders\extensions\ms-python.debugpy-2025.19.2026030601-win32-x64\bundled\libs\debugpy\adapter
2026-03-15 11:52:39.721 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:52:39.723 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:52:39.723 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:52:42.268 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:56:51.893 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:56:51.908 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:56:55.031 [info] resolveDebugConfigurationWithSubstitutedVariables: resolving interpreter for program='C:\Users\19250\Documents\GitHub\LoL-DIY-Programs\Customized Program 14 - Vie An Open Lobby's Seat.py'
2026-03-15 11:56:55.040 [info] legacyGetInterpreterDetails: executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' resource='c:\Users\19250\Documents\GitHub\LoL-DIY-Programs\Customized Program 14 - Vie An Open Lobby's Seat.py'
2026-03-15 11:56:55.041 [info] resolveDebugConfigurationWithSubstitutedVariables: setting debugConfiguration.python='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:56:55.041 [info] Resolving launch configuration with substituted variables
2026-03-15 11:56:55.044 [info] createDebugAdapterDescriptor: request='launch' name='Python 调试程序: 当前文件'
2026-03-15 11:56:55.045 [info] legacyGetInterpreterDetails: executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' resource='c:\Users\19250\Documents\GitHub\LoL-DIY-Programs'
2026-03-15 11:56:55.045 [info] legacyResolveEnvironment: Resolving environment 'c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:56:55.052 [info] legacyResolveEnvironment: Resolved executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:56:55.052 [info] resolveEnvironment: legacy resolved executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' version='3.14.3'
2026-03-15 11:56:55.052 [info] getExecutableCommand: executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' version='3.14.3'
2026-03-15 11:56:55.053 [info] createDebugAdapterDescriptor: python command parts='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:56:55.053 [info] DAP Server launched with command: c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe c:\Users\19250\.vscode-insiders\extensions\ms-python.debugpy-2025.19.2026030601-win32-x64\bundled\libs\debugpy\adapter
2026-03-15 11:56:55.399 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:56:55.401 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:56:55.401 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:56:56.591 [info] Received 'debugpySockets' event from debugpy.
2026-03-15 11:57:23.838 [info] openReportIssue: Starting report issue flow
2026-03-15 11:57:23.841 [info] legacyGetActiveEnvironmentPath: activePath='C:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' resource=''
2026-03-15 11:57:23.841 [info] getActiveEnvironmentPath: legacy active path='C:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:57:23.842 [info] legacyResolveEnvironment: Resolving environment 'C:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:57:23.842 [info] legacyResolveEnvironment: Resolved executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe'
2026-03-15 11:57:23.842 [info] resolveEnvironment: legacy resolved executable='c:\Users\19250\AppData\Local\Programs\Python\Python314\python.exe' version='3.14.3'
2026-03-15 11:57:23.842 [info] openReportIssue: Resolved pythonVersion='3.14.3' envKind='Venv'
2026-03-15 11:57:23.970 [info] openReportIssue: Issue reporter command executed

Extension version: 2025.19.2026030601
VS Code version: Code - Insiders 1.112.0-insider (3d2f6d94495933ec2e7b6a2bed05b6cb6a0e487b, 2026-03-14T08:46:55Z)
OS version: Windows_NT x64 10.0.29550
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.14.3
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
    Details
System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-12700 (20 x 2112)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x10de, DEVICE=0x2786 [NVIDIA GeForce RTX 4070], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.9579 ACTIVE
GPU1: VENDOR= 0x10de, DEVICE=0x2786 [NVIDIA GeForce RTX 4070], DRIVER_VERSION=32.0.15.9579
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.29550.1000
Machine model name:
Machine model version:
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 95.74GB (63.26GB free)
Process Argv --crash-reporter-id 554bf9ea-9bbb-4314-8ec7-c91207f06521
Screen Reader no
VM 40%
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249598
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1cf:31399617
6518g693:31302842
6abeh943:31336334
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
use-responses-api:31390341
je187915:31454425
cp_cls_c_966_ss:31454199
inlinechat_v2_hd992725:31445440
4je02754:31455664
ge8j1254_inline_auto_hint_haiku:31426735
38bie571_auto:31426784
7ig2g208:31429686
cp_cls_c_1081:31454833
ia-use-proxy-models-svc:31446143
a43f0575b:31442821
e9c30283:31453065
test_treatment2:31471001
control_6dc23131:31472781
idci7584:31454084
edit_mode_hidden:31453871
nes-ftch-new:31458522
nes_chat_context_enabled:31451401
e3e4d672:31454087
864ei723_large_tool_results_to_disk:31455802
showingstats:31457201
ei9d7968:31462942
b1f5h706:31455228
7ef87755:31455235
regwelcome:31461167
ce_clear_both:31475288
nes-sp-off:31470944
quick_suggest_off_75197330:31462668
67jbj424:31477433
hhf17803:31462392
nes-rcnt-ctrl:31468469
bg_compact_t:31477450
t-some:31466503
dfc2j404:31470440
cpptoolsoff-v2:31475362
i2gc6536:31472020
inline_hover_fd9bg283:31474549
noiconchange:31473928
h08i8180:31475367
nes-notsn-1:31475122
client_tst_t:31475292

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions