Skip to content

Severe overheating and lag on macOS and iOS device when running Flutter app via VSCode Run → Start Debugging #280243

@huahua8893

Description

@huahua8893

Type: Bug

I’m developing Flutter on macOS using VSCode (with Flutter installed manually). I normally launch my app on a physical iOS device using Run → Start Debugging in VSCode.

Recently, without changing anything, both my Mac and my iOS device started to overheat severely whenever I run the app this way. Previously, my Mac would stay around ~60°C during debugging, but now the temperature instantly spikes to 90–100°C, the iOS device heats up rapidly as well.
At the same time, the logs printed in the Debug Console appear out of order, become laggy, and the program execution seems to be blocked by something. The UI remains smooth, but the app’s internal logic clearly stutters or freezes intermittently.

At first, I suspected it might be related to the Flutter SDK environment or version. I just updated Flutter to the latest version 3.38.3 by completely replacing the local SDK files, but after successfully rebuilding and running the app, the issue still remains.

The strange part is:

  • If I run the app using the VSCode Terminal with flutter run --debug, everything is normal — no overheating.

  • Running the app from Android Studio or Xcode is also normal.

  • I also tried VSCode - Insiders, and the problem happens there as well.

  • Only VSCode’s Start Debugging triggers this overheating issue.

However, I rely heavily on VSCode’s Debug Console filtering for logs, so using other methods is much less convenient.

I also want to mention that I’m a paid GitHub Copilot user, and Copilot inside VSCode is extremely helpful for my workflow, so I really don’t want to switch to another IDE. If there is any guidance, insights, or suggestions that could help me identify or resolve this issue, I would really appreciate it.

I searched on Google but couldn’t find any useful information. I have no clue what might be causing this, and I’m not even sure whether this should be reported to Flutter or VSCode, since I don’t know where the root cause is.

Any guidance or help to troubleshoot this issue would be greatly appreciated.

PS:Later testing showed that Android device has the same issue as well.

Here is the launch.json with no edit:

Image

VS Code version: Code 1.106.3 (Universal) (bf9252a, 2025-11-25T22:28:18.024Z)
OS version: Darwin arm64 25.1.0
Modes:

System Info
Item Value
CPUs Apple M4 (10 x 2400)
GPU Status 2d_canvas: enabled
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: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 2, 3
Memory (System) 16.00GB (0.07GB free)
Process Argv --crash-reporter-id fd3eef9f-a8bf-4f0c-a7ca-0c81dcc68358
Screen Reader no
VM 0%
Extensions (26)
Extension Author (truncated) Version
flutter-snippets ale 3.0.0
path-intellisense chr 2.10.0
dart-code Dar 3.122.0
flutter Dar 3.122.0
prettier-vscode esb 11.0.0
copilot-chat Git 0.33.3
remotehub Git 0.64.0
arb-editor Goo 0.2.1
todo-tree Gru 0.0.226
android-adb-wlan Han 0.0.10
Lua key 0.0.9
flutter-intl loc 1.19.3
Kotlin mat 1.7.1
vscode-language-pack-zh-hans MS- 1.106.2025111209
remote-ssh ms- 0.120.0
remote-ssh-edit ms- 0.87.0
azure-repos ms- 0.40.0
remote-explorer ms- 0.5.0
remote-repositories ms- 0.42.0
vscode-react-native msj 1.13.0
jsontodart Muh 0.3.0
awesome-flutter-snippets Nas 4.0.1
dartgettersetter Pet 1.0.2
flutter-riverpod-snippets rob 2.0.0
ayu tea 1.0.5
vscode-counter uct 3.7.2

(3 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
pythonvspyt551:31249599
binariesv615:30325510
vscrpc:30673769
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
nes-set-on:31351930
6abeh943:31336334
cloudbuttont:31379625
todos-1:31405332
qwen_all_req:31402696
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
je187915:31401257
afag3459:31419926
ec5jj548:31422691
copilot-nes-oct-t:31418199
terminalsuggestenabled:31426255
cmp-ext-treat:31426748
cp_cls_c_966_ss:31426491
defaultvisibility:31426295
defaulttokens:31426298
copilot6169-t1000:31426764
c0683394:31419495
3fia6346:31426581
478ah919:31426797
b53de340:31426751
fa76a614:31426783
5j92g670_sonnet:31426787

Metadata

Metadata

Assignees

Labels

*caused-by-extensionIssue identified to be caused by an extension

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions