Skip to content

Commit

Permalink
Add instructions for source debugging with Xcode when using RBE. (flu…
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmaygarde authored Jul 11, 2024
1 parent b2e256b commit b40a608
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/Debugging-the-engine.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ Add an engine symbol breakpoint via **Debug > Breakpoints > Create Symbolic Brea

You can also set a breakpoint directly with [lldb](https://lldb.llvm.org/tutorial.html) by expanding **Flutter > Runner** in the Runner Project Navigator. Put a breakpoint in `AppDelegate.swift`'s `application(didFinishLaunchingWithOptions:)` (Swift project) or `main.m`'s `main()` (Objective-C project) and start the application by clicking the Run button (CMD + R). Then, set your desired breakpoint in the engine in `lldb` via `breakpoint set -...`.

### Googlers using RBE

You need to tell Xcode where your Flutter Engine sources are located. You can do this using an LLDB Init file. Place one in your home directory named `~/.lldbinit`. The contents of the file should be (fixup the path as necessary):

```
settings set target.source-map "flutter/" "/path/to/engine/src/flutter/"
```

## Debugging Android builds with gdb

See https://github.com/flutter/engine/blob/main/sky/tools/flutter_gdb#L13
Expand Down

0 comments on commit b40a608

Please sign in to comment.