Is it possible to manipulate the return value in the chrome debugger?

后端 未结 1 1913
渐次进展
渐次进展 2021-02-19 10:53

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

相关标签:
1条回答
  • 2021-02-19 11:14

    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.

    0 讨论(0)
提交回复
热议问题