-
Notifications
You must be signed in to change notification settings - Fork 806
Added FBPrintWindow command #239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks Pete. I like it. I have some thoughts. This is the same as |
@PeteTheHeat what do you think about my suggestion? |
Yeah that makes sense! Let me update it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. I have one comment.
if arguments[0] == '__keyWindow_dynamic__': | ||
arguments[0] = '(id)[[UIApplication sharedApplication] keyWindow]' | ||
|
||
if window > 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this check can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see now why you have this. Never mind :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup I was hoping the if/else flow was clear, if a window is passed in, do some new stuff, else fall back to what the code was doing before.
commands/FBPrintCommands.py
Outdated
@@ -20,6 +20,7 @@ | |||
def lldbcommands(): | |||
return [ | |||
FBPrintViewHierarchyCommand(), | |||
FBPrintWindow(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that pviews
supports -w
, I don't think it's worth having a separate command. A user could get pwindow
by adding this to their ~/.lldbinit
:
command alias pwindow pviews --window %1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I tried to delete it but it came back in the merge somehow lol, I'm too used to hg these days. I'll remove it
thanks! |
I've been working with input accessory views quite a bit. They've been annoying to debug because they don't live in the main key window, they are hosted in the Keyboard's window. I added a short chisel command locally to make printing a window easy. Let me know if this is something useful for the library.