Skip to content

Commit

Permalink
Add instructions for debugging engine with xcode (flutter#3411)
Browse files Browse the repository at this point in the history
  • Loading branch information
xster authored Feb 10, 2017
1 parent e70d3ea commit 6e1ba3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ Once the artifacts are built, you can start using them in your application by fo
* `cd /path/to/flutter/examples/hello_world`
* `pub get`
* `../../bin/flutter run --local-engine-src-path /path/to/engine/src --local-engine=ios_debug_unopt` or `--local-engine=ios_debug_sim_unopt` for simulator
* If you are debugging crashes in the engine, you can connect the `LLDB` debugger from `Xcode` by opening `ios/Runner.xcodeproj` and starting the application by clicking the Run button (CMD + R).
* If you are debugging crashes in the engine, you can connect the `LLDB` debugger from `Xcode` by opening `ios/Runner.xcworkspace` and starting the application by clicking the Run button (CMD + R).
* To debug non crashing code, open Xcode with `ios/Runner.xcworkspace`, expand Flutter->Runner->Supporting Files->main.m in the Runner project. Put a breakpoint in main() then set your desired breakpoint in the engine in lldb via `breakpoint set -...`.


### Desktop (Mac and Linux), for tests
Expand Down

0 comments on commit 6e1ba3f

Please sign in to comment.