omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Beta: Object Inspector

    Pythonista
    4
    7
    4264
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tomkirn
      tomkirn last edited by

      Hi Ole,

      I really like the new object inspector. It's a great new feature inside the console. Just a few suggestions from me:

      • is it possible to make the panel resizable? Some of the object descriptions are cut off.
      • possible to make the objects copy-able? Would be great for searching the correct methode, attribute,... and than just copying into the code.
      • and a last one: Why only for console? I would like this feature also within the code editor.

      Regards
      Tom

      P.S.: Thanks for continuing the journey!

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        is it possible to make the panel resizable? Some of the object descriptions are cut off.

        Not planned for now, but I'll keep it in mind.

        possible to make the objects copy-able? Would be great for searching the correct methode, attribute,... and than just copying into the code.

        That's still on my todo list.

        and a last one: Why only for console? I would like this feature also within the code editor.

        Well, you could dock the console to the editor to get something similar.

        1 Reply Last reply Reply Quote 0
        • tomkirn
          tomkirn last edited by

          Well, you could dock the console to the editor to get something similar.

          Did not realize this.....sometimes the solution is nearer than the problem. This is exactly what I was thinking about.

          1 Reply Last reply Reply Quote 0
          • Phuket2
            Phuket2 last edited by

            The search or filter would be handy. Or possibly a locals/globals/all type switch/segment might even be better

            1 Reply Last reply Reply Quote 0
            • JonB
              JonB last edited by

              A few other improvements ideas for both object inspector and debugger:

              1. Support for ObjCInstances. I realize this might not be possible, since it can be sometimes hard to tell which attributes are side effect free. Though I think the same method that works
                in objc_util for handling obj.propname=value should work? Or, expand the leaves based on property-like names in dir(), but don't actually call the getter until expanded another level (e.f show frame() as a leaf, then if that is expanded by the user, show the result). Much of the need for this is obviated by suggestion 3 below...

              2. Ability to edit basic types in place. I had this basically of working in my crude debugger vdb -- basically an textfield with an action tied back to the appropriate setattr for basic attributes, or setitem for dict and list items.

              3. the debugger really needs a mini console, or ability to switch to pdb in the main console. Think "immediate window" in visual studio -- at least for me, that is where the action happens in a debugging session.

              Phuket2 1 Reply Last reply Reply Quote 0
              • Phuket2
                Phuket2 @JonB last edited by

                @JonB , does your point 3. Infer a floating view? As far as I can see you can't access the inspector while a view is presented. Maybe, there is a way I don't know how to do. I can imagine the activation method could be a little tricky. But for a debugging option, would not be unreasonable to do a weird keystroke combination to invoke it. Like macOS does with sticky keys. Hit the shift key 3 times rapidly to turn it on. Just a idea anyway.

                1 Reply Last reply Reply Quote 0
                • JonB
                  JonB last edited by

                  i was suggesting a console conneed to the debug window, which runs a Pdb style command line. Not for the Object Browser, that was debugger specific.

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post
                  Powered by NodeBB Forums | Contributors