console.log of objects shows up as Object

When attaching IntelliJ debugger to browser, if inside my application I log some thing like `console.log('my value is', value)`where value is an object

than in debugger console tab I will see `my value is Object` rather than showing up as it does in chrome which is some thing I could expand and work with.

I understand that what most likelly is happening is that intelliJ debugger detects that it's an object and prints just object.

It would be cool to detect inside the app if debugger is attached and than change logging strategy to log not the object itself, but lets say the json representation of the object

Any one has an idea how that can be done ?

0
2 comments

To inspect objects/arrays in console, you need to mouse hover over the result or hit Alt+Click+F8 (Quick Evaluate Expression).

 

To have results represented as a tree view in console, please vote for https://youtrack.jetbrains.com/issue/WEB-14856

0
Avatar
Permanently deleted user

Cool I was not aware of this functionality, voted for the feature, but for now this is better than nothing :)

0

Please sign in to leave a comment.