ryanolsonk / lldb-quicklook Goto Github PK
View Code? Open in Web Editor NEWDebugger commands to open images, views, and more using Quick Look.
License: MIT License
Debugger commands to open images, views, and more using Quick Look.
License: MIT License
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/local/opt/chisel/libexec/fbchisellldb.py", line 27, in loadCommandsInDirectory
module = imp.load_source(fileName, os.path.join(commandsDirectory, file))
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 779, in exec_module
File "<frozen importlib._bootstrap_external>", line 916, in get_code
File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/Users/boyer/.myPyDir/lldb_quick_look.py", line 102
except DebuggerError, err:
^
SyntaxError: invalid syntax
(lldb) po self.view
$0 = 0x08992ca0 <UIView: 0x8992ca0; frame = (0 20; 320 460); autoresize = RM+BM; layer = <CALayer: 0x89948a0>>
(lldb) ql self.view
Traceback (most recent call last):
File "/Users/kenshin/Documents/MyCollection/Xcode/LLDB-QuickLook/lldb_quick_look.py", line 100, in quick_look_command
savedFilePath = get_data_and_save(debugger, expression, options.filename)
File "/Users/kenshin/Documents/MyCollection/Xcode/LLDB-QuickLook/lldb_quick_look.py", line 166, in get_data_and_save
options.SetIgnoreBreakpoints()
File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/Python/lldb/init.py", line 3217, in
getattr = lambda self, name: _swig_getattr(self, SBExpressionOptions, name)
File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/Python/lldb/init.py", line 78, in _swig_getattr
raise AttributeError(name)
AttributeError: SetIgnoreBreakpoints
(lldb)
It seems that in lldb_quick_look.py of line 166 ,the function 'SetIgnoreBreakpoints' not exist to the caller 'options'.
What should i do?
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.