Search code examples
fluttervisual-studio-codevscode-debugger

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?


Solution

  • 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)