Is there a way to change value while debugging a Flutter App

357

I don't think this is possible. In Visual Studio Code there would be a Set Value command on the context menu if you clicked on any variable which you can change, but it is not available when debugging a Flutter application. Even if you go to Debug Console when paused on a breakpoint, and assign a new value to a variable there, it is not reflected when you resume running your code.

Share:
357
Solen Dogan
Author by

Solen Dogan

A Full-Stack developer in the journey of programming. I have been working with SAP ABAP and Fiori. Always keen to take challenge and learn new technologies. Looking forward to learn new technologies e.g. Dart and Flutter.

Updated on December 31, 2022

Comments

  • Solen Dogan
    Solen Dogan over 1 year

    As in all languages Debugging is a core concept as we all need to do it:) I am trying to edit and set a value while running a Flutter App in debug Mode. However i could not find any place where i can edit the value and set it to test the effect of the change in the flow.

    • In VS Code i have put breakpoints and run the app in the debug mode. Set watchpoints etc.. but could not find a way to edit a value?

    İs this possible in flutter apps?

  • Solen Dogan
    Solen Dogan almost 3 years
    Thanks Peter Thats a shame, this is such a useful thing while debugging. Theres dart developer tools with lots of features but no set value
  • puzzled
    puzzled about 2 years
    @solen-dogan please let me know if you found any work around