dispatch_async doesn't work in debugger
| Originator: | numist | ||
| Number: | rdar://12578656 | Date Originated: | 25-Oct-2012 05:18 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode Version 4.5.1 (4G1004)/LLDB-167.4 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary:
Dispatching onto a queue (say you're using a serial queue to mutex critical operations) doesn't work in the debugger.
Steps to Reproduce:
(lldb) p (void)dispatch_async(_dispatch_main_q, ^{[[[[Foo alloc]init]autorelease] method]})
Expected Results:
<no result>
Actual Results:
error: expected ';' after expression
error: no known method '-method'; cast the message send to the method's return type
error: blocks support disabled - compile with -fblocks or pick a deployment target that supports them
error: 3 errors parsing expression
Regression:
No
Notes:
That error message is confusing as hell, and I only tried this while trying to work around rdar://12578642
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!