Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python steals focus of Debug Console when debugging with Platformio #533

Open
dzid26 opened this issue Jul 20, 2023 · 1 comment
Open

Python steals focus of Debug Console when debugging with Platformio #533

dzid26 opened this issue Jul 20, 2023 · 1 comment
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@dzid26
Copy link

dzid26 commented Jul 20, 2023

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

@eleanorjboyd
Copy link
Member

Hi! Is this issue still present?

@eleanorjboyd eleanorjboyd transferred this issue from microsoft/vscode-python Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

4 participants