Obada Jasem
Obada Jasem

Reputation: 211

What is the difference between start debugging and Run without debugging

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?

Upvotes: 4

Views: 4065

Answers (3)

Edward Garson
Edward Garson

Reputation: 2186

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.

Upvotes: 2

Simon
Simon

Reputation: 96

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)

Upvotes: 6

Viren V Varasadiya
Viren V Varasadiya

Reputation: 27177

start debugging mean's in debug mode, it is best when you want to debug your app. you can set multiple break points and check what is value of that variable at particular point of time.

Run without debugging mean simple run where your break points doesn’t matter.

Moreinfo: https://flutter.dev/docs/development/tools/vs-code

Upvotes: 0

Related Questions