question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with hot reloading while debugging

See original GitHub issue

Steps to Reproduce

  1. Run app in debug mode
  2. Attempt to hot reload (Seems to happen more when paused on a breakpoint, but in general happens when you have a debugger attached)
  3. Notice it never reloads

Version info

[√] Flutter (Channel beta, v0.3.1, on Microsoft Windows [Version 10.0.16299.125], locale en-US)
    • Flutter version 0.3.1 at C:\Users\pobor\Documents\flutter
    • Framework revision 12bbaba9ae (3 weeks ago), 2018-04-19 23:36:15 -0700
    • Engine revision 09d05a3891
    • Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at C:\Users\pobor\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] IntelliJ IDEA Ultimate Edition (version 2018.1)
    • IntelliJ at C:\Users\pobor\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\181.4668.68
    • Flutter plugin version 24.0.2
    • Dart plugin version 181.4668.60

[√] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
stychucommented, May 18, 2018

@patrykpoborca I get your point. I actually experienced this now. For a while, everything was working as expected. I was able to Ctrl + s and got the hot reload. But after some time hot reload got stuck and was in initializing hot reload so I did Stop the app completely and run it again and I was UNABLE to run hot reload with Ctrl +s only ctrl+. This is weird

0reactions
InMatrixcommented, Jan 22, 2020

Just to add that there are several reports of this issue from the user survey the Flutter team fielded in November 2019. More investigation into the root cause is needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Write and debug code by using Hot Reload - Visual Studio ...
Open a project based on a supported application type. · Make sure that Enable native code debugging is disabled in the debugger settings...
Read more >
Unable to Hot Reload on Visual Studio 2022 - Stack Overflow
Press the Hot Reload icon in the toolbar, then Settings from the icon's context menu (or access via Tools > Settings > Debugging)...
Read more >
Hot Reload appears to hang when running under a debugger ...
NET 6 and attempt to apply a code change while under a debugger using the edit-and-continue/hot reload capabilities using “apply changes” (through either...
Read more >
Edit running code with Hot Reload - JetBrains Rider
You can edit the code of a suspended program and then continue debugging without the need to restart the session. The affected project...
Read more >
Is it possible to use hot reload while debugging in VsCode?
When you save a file and it reloads the debugger will detach because iirc dotnet launches a new process.
Read more >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found