Skip to content

Instantly share code, notes, and snippets.

@bcjordan
Created October 6, 2016 17:58
Show Gist options
  • Save bcjordan/3dc20df28d2c3332d3958da4c996e151 to your computer and use it in GitHub Desktop.
Save bcjordan/3dc20df28d2c3332d3958da4c996e151 to your computer and use it in GitHub Desktop.
Index: apps/src/templates/DebugWatch.jsx
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- apps/src/templates/DebugWatch.jsx (revision 1aef991d600df2d61bc9573bc307fc3cbe6eab06)
+++ apps/src/templates/DebugWatch.jsx (revision )
@@ -2,6 +2,7 @@
import Immutable from 'immutable';
import {connect} from 'react-redux';
import i18n from '@cdo/locale';
+import {ObjectInspector} from 'react-inspector';
/**
* A "watchers" window for our debugger.
@@ -37,6 +38,8 @@
return <span className="watch-value">{descriptor}</span>;
case 'regexp':
return <span className="watch-value">[regexp]</span>;
+ case 'object':
+ return <ObjectInspector data={obj}/>;
case 'function':
// [function MyFunctionName]
return <span className="watch-value">{`[${obj.toString().match(/(.*)\(/)[1]}]`}</span>;
Index: apps/src/templates/DebugWatch.jsx
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- apps/src/templates/DebugWatch.jsx (revision 1aef991d600df2d61bc9573bc307fc3cbe6eab06)
+++ apps/src/templates/DebugWatch.jsx (revision )
@@ -2,6 +2,7 @@
import Immutable from 'immutable';
import {connect} from 'react-redux';
import i18n from '@cdo/locale';
+import {ObjectInspector} from 'react-inspector';
/**
* A "watchers" window for our debugger.
@@ -37,6 +38,8 @@
return <span className="watch-value">{descriptor}</span>;
case 'regexp':
return <span className="watch-value">[regexp]</span>;
+ case 'object':
+ return <ObjectInspector data={obj}/>;
case 'function':
// [function MyFunctionName]
return <span className="watch-value">{`[${obj.toString().match(/(.*)\(/)[1]}]`}</span>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment