title: In Chrome JS debugger, how do I print all the properties of an object?
body: <p>I have opened the Javascript Debugger (Ctrl+Shift+L) in Chrome and started using it to set breakpoints in my code.  </p>
  
  <p>This is a much different interface compared to Firebug, (it's all command line driven) so I'm wondering how to do a simple thing like print all the properties of an object.</p>
  
  <p>If I have an object like this:</p>
  
  <pre><code>var opts = {
    prop1: "&lt;some&gt;&lt;string/&gt;&lt;/some&gt;",
    prop2: 2,
    prop3: [1,2,3]
  }
  </code></pre>
  
  <p>I can set a breakpoint and inspect the object, but I only seem to get a single property back, and I'm not sure which property will appear:</p>
  
  <pre><code>$ print opts
  #&lt;an Object&gt;
  </code></pre>
  
  <p>Trying to get all the properties:</p>
  
  <pre><code>$ print for(var p in opts) p;
  prop1
  </code></pre>
  
  <p>Any ideas?
  It obviously has more than just one...</p>