ryanolsonk / LLDB-QuickLook

Debugger commands to open images, views, and more using Quick Look.
MIT License
767 stars 30 forks source link

Question about ql image (not) being opened #7

Open dxclancy opened 8 years ago

dxclancy commented 8 years ago

I'm doing very heavy image manipulation and being able to set a breakpoint and automatically execute quicklook on an image has sped up my debugging tremendously, thank you!

I also find it very useful in AppCode which, as far as I can tell, doesn't have any ability to display images from debugger variables like Xcode does natively.

However, in AppCode lldb, i merely get this result:

(lldb) ql markedUpImage
Data written to /tmp/projname/UIImage_4067500865.png

While I can open that path manually, image itself does not "popup" as it does in Xcode. Is this what the accessibility setting is for? To allow the debugger to launch the image? I ask because I did set up AppCode for accessibility the same as Xcode, and yet the images don't "popup".

Thanks!

ryanolsonk commented 8 years ago

Glad you've found the tool useful! Triggering quick look is done with AppleScript which requires the accessibility settings to be enabled. To be totally honest, I haven't been using or maintaining this project recently. I'd recommend checking out https://github.com/facebook/chisel which is much more extensive and has a similar command called visualize.

dxclancy commented 8 years ago

thanks, i had read about chisel but forgot about it! I installed it and it is super useful, but i actually prefer how you do quicklooks vs. the context switch to preview. (i'm auto qling on breakpoints and may view 10-20 images on a pass sometimes.) I also am not able to get to chisel commands to run in AppCode.

At any rate, it sounds like if your command is being triggered, but quicklook is not opening an image, you would suspect it was an accessibility issue.

thanks again.