title: Titanium - Dumping an object to the console
body: <p>** update / workaround ** : I had to get this pushed live, so I've removed the action bar navigation module I was using and simply use the default android navigation and hardware back button and it works.</p>
  
  <hr>
  
  <p>I have an app that is using some stack operations for Navigation.
  iOS works perfectly, but in Android if I get 3 views deep, when I tap the action bar arrow to go back, it crashes with </p>
  
  <pre><code>[WARN] :   W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.appcelerator.kroll.KrollDict.containsKey(java.lang.Object)' on a null object reference
  [WARN] :   W/System.err:    at org.appcelerator.kroll.KrollProxy.hasProperty(KrollProxy.java:531)
  [WARN] :   W/System.err:    at ti.modules.titanium.ui.widget.TiUITableView.processProperties(TiUITableView.java:167)
  [WARN] :   W/System.err:    at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1173)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:513)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:504)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:482)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:520)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:504)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:482)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:520)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:504)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:482)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:692)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:585)
  [WARN] :   W/System.err:    at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
  [WARN] :   W/System.err:    at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62)
  [WARN] :   W/System.err:    at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:872)
  [WARN] :   W/System.err:    at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1095)
  [WARN] :   W/System.err:    at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:360)
  [WARN] :   W/System.err:    at android.os.Handler.dispatchMessage(Handler.java:98)
  [WARN] :   W/System.err:    at android.os.Looper.loop(Looper.java:148)
  [WARN] :   W/System.err:    at android.app.ActivityThread.main(ActivityThread.java:5417)
  [WARN] :   W/System.err:    at java.lang.reflect.Method.invoke(Native Method)
  [WARN] :   W/System.err:    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
  [WARN] :   W/System.err:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
  [ERROR] :  TiExceptionHandler: (main) [7825,17084] ----- Titanium Javascript Runtime Error -----
  [ERROR] :  TiExceptionHandler: (main) [0,17084] - In ti:/view.js:22,8
  [ERROR] :  TiExceptionHandler: (main) [0,17084] - Message: Uncaught Attempt to invoke virtual method 'boolean org.appcelerator.kroll.KrollDict.containsKey(java.lang.Object)' on a null object reference
  [ERROR] :  TiExceptionHandler: (main) [0,17084] - Source:       _add.call(this, child);
  [ERROR] :  V8Exception: Exception occurred at ti:/view.js:22: Uncaught Attempt to invoke virtual method 'boolean org.appcelerator.kroll.KrollDict.containsKey(java.lang.Object)' on a null object reference
  [ERROR] :  V8Exception: Attempt to invoke virtual method 'boolean org.appcelerator.kroll.KrollDict.containsKey(java.lang.Object)' on a null object reference
  </code></pre>
  
  <p>During my attempts at debugging, the problem occurs when its poping views off the stack.  I have an object called stack and I'd like to dump that to the console so I can look at what is in it, or if it is indeed empty.</p>
  
  <p>I've tried <code>Ti.API.info(JSON.stringify(stack))</code> but that results in a serialization error.</p>
  
  <p>Any idea how I can dump the stack object or view what it contains at a specific point?  </p>