<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - [RFE] A way to print properties/methods of an object is needed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=126392">126392</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[RFE] A way to print properties/methods of an object is needed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.2.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>sdk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>hi-angel@yandex.ru
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=152769" name="attach_152769" title="Connects to LO instance running as a server">attachment 152769</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=152769&action=edit" title="Connects to LO instance running as a server">[details]</a></span>
Connects to LO instance running as a server

Currently when writing an UNO script it is very hard to figure out what
methods/properties an object has. One needs to search for documentation,
however some properties are not documented; and even if they were, it is much
faster to just print everything an object provides in an interactive prompt.

# Steps to reproduce

1. Download to current directory the attached script (it simply connects to
libreoffice)
1. Run office as: soffice --calc
--accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"
2. Run "python" to enter an interactive shell
3. Execute in python: exec(open("./connect-to-lo.py").read())
4. Try printing the "model.CurrentController" object in such a way so you could
see "ActiveSheet" field

## Expected

There's a way to do it

## Actual

There's no way to view properties of the object, including the "ActiveSheet"
field.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>