What is the difference between start debugging and Run without debugging

1,843

Solution 1

In Debug mode, you can pause your application at so called break points. This can help you to find bugs in your code. You can also figure out, which values your variables consist at a speficic part in your application.

You can set a break point by double clicking on the left of a line number where you want to pause your code from running (see here: debug break point example)

Solution 2

Debug mode is for development. As such, the binaries are larger and slower, because they have e.g. the names of all your functions stored alongside line number information for debug tracing to work. Hot reloading is also an important feature of development or debug mode.

When you run in production mode, all the debug information is stripped away, the app loads much faster, and all debug information is elided from the binary that is produced. It is for end-use.

Share:
1,843
ObadaJasm
Author by

ObadaJasm

Mobile Application Developer uses Dart and Flutter to turn code into a Amazing Cross App. Senior year in college Informatics Engineering specialized in Software Engineering in Tishreen university

Updated on December 20, 2022

Comments

  • ObadaJasm
    ObadaJasm over 1 year

    I'm building a flutter app in VsCode

    When am ready to lunch my app I use Run -> start debugging in vsCose

    But alternatively I can use Run -> Run without debugging

    So what the difference between the two?