Google\'s Chrome browser has a nice feature which shows you the return value in the debugger before you step out of the function. It shows up in the Scope
list in o
Store as Global Variable
works in google chrome now, using Version 56.0.2924.87
.
So, you step to the close brace of your function in the Sources tab, then context-click the Return Value, and choose Store as Global Variable
.
The console tab will show something like
temp1 = ▶ MyClass {...}
From there on you can access temp1 just like any other variable in the console.