Created
October 6, 2016 17:58
-
-
Save bcjordan/3dc20df28d2c3332d3958da4c996e151 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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