Re: Typecasting variables in lldb


Laurent Daudelin
 

Thanks, I will try that

-Laurent.
-- 

On May 14, 2021, at 20:55, Jens Alfke <jens@...> wrote:


On May 12, 2021, at 2:17 PM, Laurent Daudelin <laurent@...> wrote:

I used to be able to do something like:

(lldb) po ((MyCustomDelegate *)UIApplication.shared.delegate).rootViewController

Take out the space(s). LLDB's argument parser isn’t smart, and will cut off an argument at a space even inside parens.

(I think this has always been the case.)

—Jens
_._,_._,_

Join xcode@apple-dev.groups.io to automatically receive all group messages.