text stringlengths 1 372 |
|---|
<topic_start> |
start the debugger in VS code |
to open the flutter app directory, go to |
file > |
open folder… and choose the my_app directory. |
open the lib/main.dart file. |
if you can build an app for more than one device, |
you must select the device first. |
go to |
view > |
command palette… |
you can also press ctrl / cmd + |
shift + p. |
type flutter select. |
click the flutter: select device command. |
choose your target device. |
click the debug icon |
(). |
this opens the debug pane and launches the app. |
wait for the app to launch on the device and for the debug pane to |
indicate connected. |
the debugger takes longer to launch the first time. |
subsequent launches start faster. |
this flutter app contains two buttons: |
<topic_end> |
<topic_start> |
attach to the flutter process in xcode |
to attach to the flutter app, go to |
debug > |
attach to process > |
runner. |
runner should be at the top of the attach to process menu |
under the likely targets heading. |
<topic_end> |
<topic_start> |
start debugging with xcode first |
<topic_end> |
<topic_start> |
start the debugger in xcode |
open macos/Runner.xcworkspace from your flutter app directory. |
run this runner as a normal app in xcode. |
when the run completes, the debug area at the bottom of xcode displays |
a message with the dart VM service URI. it resembles the following response: |
copy the dart VM service URI. |
<topic_end> |
<topic_start> |
attach to the dart VM in VS code |
to open the command palette, go to view > command palette… |
you can also press cmd + shift + p. |
type debug. |
click the debug: attach to flutter on device command. |
in the paste an VM service URI box, paste the URI you copied |
from xcode and press enter. |
<topic_end> |
<topic_start> |
debug dart and c++ code using visual studio |
to debug c++ code, you need a flutter app that contains c++ code. |
in this section, you learn to connect two debuggers to your app: |
flutter via VS code and visual studio. |
you need to run both VS code and visual studio. |
these section uses the same example flutter url_launcher app created |
in update test flutter app. |
<topic_end> |
<topic_start> |
build the windows version of the flutter app in PowerShell or the command prompt |
to generate the needed windows platform dependencies, |
run the flutter build command. |
<topic_end> |
<topic_start> |
start debugging with VS code first |
if you use VS code to debug most of your code, start with this section. |
<topic_end> |
<topic_start> |
start the debugger in VS code |
to open the flutter app directory, go to |
file > |
open folder… and choose the my_app directory. |
open the lib/main.dart file. |
if you can build an app for more than one device, |
you must select the device first. |
go to |
view > |
command palette… |
you can also press ctrl / cmd + |
shift + p. |
type flutter select. |
click the flutter: select device command. |
choose your target device. |
click the debug icon |
(). |
this opens the debug pane and launches the app. |
wait for the app to launch on the device and for the debug pane to |
indicate connected. |
the debugger takes longer to launch the first time. |
subsequent launches start faster. |
this flutter app contains two buttons: |
<topic_end> |
<topic_start> |
attach to the flutter process in visual studio |
to open the project solution file, go to |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.