GithubHelp home page GithubHelp logo

ryanolsonk / lldb-quicklook Goto Github PK

View Code? Open in Web Editor NEW
768.0 30.0 30.0 269 KB

Debugger commands to open images, views, and more using Quick Look.

License: MIT License

Objective-C 65.94% Python 30.23% Ruby 3.82%

lldb-quicklook's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lldb-quicklook's Issues

SyntaxError: invalid syntax

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

Cannot run command:ql, got error,need help

(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?

Question about ql image (not) being opened

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!

Swift support

Is this supported for swift? I get the below error but when I call snap.quickLookDebugData() it works, so it clearly is accessible.

70272cee-5f32-431e-bbf3-0c94095395f6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.