text
stringlengths 1
474
|
|---|
unlock the keychain. For more information, see this
|
question on StackExchange.<topic_end>
|
<topic_start>
|
Run app without breakpoints
|
Go to Run > Start Without Debugging.You can also press Ctrl + F5.<topic_end>
|
<topic_start>
|
Run app with breakpoints
|
Click Run > Start Debugging.
|
You can also press F5.
|
The status bar turns orange to show you are in a debug session.
|
<topic_end>
|
<topic_start>
|
Run app in debug, profile, or release mode
|
Flutter offers many different build modes to run your app in.
|
You can read more about them in Flutter’s build modes.Open the launch.json file in VS Code.If you don’t have a launch.json file:Go to View > Run.You can also press Ctrl / Cmd +
|
Shift + DThe Run and Debug panel displays.Click create a launch.json file.In the configurations section,
|
change the flutterMode property to
|
the build mode you want to target.For example, if you want to run in debug mode,
|
your launch.json might look like this:Run the app through the Run panel.<topic_end>
|
<topic_start>
|
Fast edit and refresh development cycle
|
Flutter offers a best-in-class developer cycle enabling you
|
to see the effect of your changes almost instantly with the
|
Stateful Hot Reload feature.
|
To learn more, check out Hot reload.<topic_end>
|
<topic_start>
|
Advanced debugging
|
You might find the following advanced debugging tips useful:<topic_end>
|
<topic_start>
|
Debugging visual layout issues
|
During a debug session,
|
several additional debugging commands are added to the
|
Command Palette and to the Flutter inspector.
|
When space is limited, the icon is used as the visual
|
version of the label.<topic_end>
|
<topic_start>
|
Debugging external libraries
|
By default, debugging an external library is disabled
|
in the Flutter extension. To enable:<topic_end>
|
<topic_start>
|
Editing tips for Flutter code
|
If you have additional tips we should share, let us know!<topic_end>
|
<topic_start>
|
Assists & quick fixes
|
Assists are code changes related to a certain code identifier.
|
A number of these are available when the cursor is placed on a
|
Flutter widget identifier, as indicated by the yellow lightbulb icon.
|
To invoke the assist, click the lightbulb as shown in the following screenshot:You can also press Ctrl / Cmd + .Quick fixes are similar,
|
only they are shown with a piece of code has an error and they
|
can assist in correcting it.<topic_end>
|
<topic_start>
|
Snippets
|
Snippets can be used to speed up entering typical code structures.
|
They are invoked by typing their prefix,
|
and then selecting from the code completion window:
|
The Flutter extension includes the following snippets:You can also define custom snippets by executing
|
Configure User Snippets from the Command Palette.<topic_end>
|
<topic_start>
|
Keyboard shortcuts
|
You can also press Ctrl + F5
|
(Cmd + F5 on macOS).Keyboard mappings can be changed by executing the
|
Open Keyboard Shortcuts command from the Command Palette.<topic_end>
|
<topic_start>
|
Hot reload vs. hot restart
|
Hot reload works by injecting updated source code files into the
|
running Dart VM (Virtual Machine). This includes not only
|
adding new classes, but also adding methods and fields to
|
existing classes, and changing existing functions.
|
A few types of code changes cannot be hot reloaded though:For these changes, restart your app without
|
ending your debugging session. To perform a hot restart,
|
run the Flutter: Hot Restart command from the Command Palette.You can also press
|
Ctrl + Shift + F5
|
or Cmd + Shift + F5 on macOS.<topic_end>
|
<topic_start>
|
Troubleshooting
|
<topic_end>
|
<topic_start>
|
Known issues and feedback
|
All known bugs are tracked in the issue tracker:
|
Dart and Flutter extensions GitHub issue tracker.
|
We welcome feedback,
|
both on bugs/issues and feature requests.Prior to filing new issues:When filing new issues, include flutter doctor output.
|
<topic_end>
|
<topic_start>DevTools
|
<topic_end>
|
<topic_start>
|
What is DevTools?
|
DevTools is a suite of performance and debugging tools
|
for Dart and Flutter.For a video introduction to DevTools, check out
|
the following deep dive and use case walkthrough:Dive in to DevTools<topic_end>
|
<topic_start>
|
What can I do with DevTools?
|
Here are some of the things you can do with DevTools:We expect you to use DevTools in conjunction with
|
your existing IDE or command-line based development workflow.
|
<topic_end>
|
<topic_start>
|
How to start DevTools
|
See the VS Code, Android Studio/IntelliJ, or
|
command line pages for instructions on how to start DevTools.<topic_end>
|
<topic_start>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.