microsoft / microsoft/vscode-python-debugger

Python steals focus of Debug Console when debugging with Platformio

未关闭
#533 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

还没有人认领这个 Issue。

triage-needed
主要语言
TypeScript
星标
180
派生
126
平均合并
2 天 3 小时
30 天内合并 PR
3

描述

Type: Bug

  1. Install https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide
  2. Install Python extension and makes sure it's loaded, by e.g. opening REPL
  3. Clone https://github.com/platformio/platform-native/tree/master and load platform-native\examples\hello-world as workspace. Wait 10 seconds or so.
  4. Press F5

Actual behaviour:
Compiles progress is shown in the terminal. Program pauses on main(). User has to click on Debug Console to interact with GDB even though launch.json specifies "internalConsoleOptions": "openOnSessionStart".

Expected:
After compilation finishes debug console shall be brough to focus. If platformio is used with embedded target, user can see the binary being downloaded to the target and then can interact with it via semihosting, etc.

Note:
The expected behaviour can be achieved by Disabling Python extension and reloading the window.

Extension version: 2023.12.0
VS Code version: Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:22:07.651Z)
OS version: Windows_NT x64 10.0.22000
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.65GB (1.84GB free)
Process Argv --crash-reporter-id 2ef976af-0ebf-4a25-859c-0d6742e63bdd
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30610679
3biah626:30602489
89544117:30613380
vscrpc:30673769
2i9eh265:30646982
showlangstatbar:30737416
vsctsb:30748421
03d35959:30757346
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
i26e3531:30792625
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnocebcf:30776496
e537b577:30786199
dsvsc013:30789517

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。