javascript debugger console is not as cool as chrome debugger -- array
When I am trying to print out an array below is output from chrome :
iconData
(3) ["ABC", 5, 25]
Below is what intellij console shows to me , and as a developer , it is not helpful at all .I am not sure why intellij developed this debug functionality since it is just a joke
iconData
Array(3)
And for a workaround I was trying to use JSON.stringify(iconData) to view the actual data in console , it is there in chrome but in intellij it is not there.
Very frustrated.
Please sign in to leave a comment.
to inspect objects/arrays in console, you need to mouse hover over the result or hit Alt+Cmd+F8 (Quick Evaluate Expression).
To have results represented as a tree view in console, please vote for https://youtrack.jetbrains.com/issue/WEB-14856
@Elena, In general the Variables tab displays values pretty well. One limitation with this is following a change to a data structure over time. For example, in chrome I can "console.log" a variable and then later log the same variable and inspect two different states of the same variable at different points in time. This feature would be nice to have in Webstorm. Another important part of this is the variable is NOT expanded by default so when viewing the console log each log statement is next to each other with a + (plus) next to the variable to allow me to expand it if I want.
>For example, in chrome I can "console.log" a variable and then later log the same variable and inspect two different states of the same variable at different points in time
not sure I follow you.. Can't you have multiple "console.log" in webstorm?
>Another important part of this is the variable is NOT expanded by default
please vote for https://youtrack.jetbrains.com/issue/WEB-22056