Skip to content

Commit 44bd907

Browse files
committed
Update LLDB command for Swift
1 parent 62c3537 commit 44bd907

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/_posts/2015-08-17-autolayout-breakpoints.markdown

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ All right, here's what Xcode want's you to do:
3434
Honestly, that won't help much, because basically it'll just stop the execution and leave you up with `LLDB`, alone in the dark.
3535

3636
But there's a little trick you can do to enhance the preceding symbolic breakpoint.
37-
Adding `po [[UIWindow keyWindow] _autolayoutTrace]` to it.
37+
Adding `po [[UIWindow keyWindow] _autolayoutTrace]` to it (for Obj-C projects) or `expr -l objc++ -O -- [[UIWindow keyWindow] _autolayoutTrace]` (for Swift projects).
3838

3939
{% img center /images/autolayout-breakpoints/2.png %}
4040

@@ -56,4 +56,6 @@ And if that's not enough for you to find out your autolayout issue, try changing
5656
(UICachedDeviceRGBColor *) $1 = 0x00007f9ea3d43410
5757
```
5858

59-
Fear no more young Padawan, make symbolic breakpoints and `LLDB` work for you!
59+
Fear no more young Padawan, make symbolic breakpoints and `LLDB` work for you!
60+
61+
I would like to thank [Porter Hoskins](https://twitter.com/PorterHoskins) for pointing out the correct `LLDB` command for Swift.

0 commit comments

Comments
 (0)