Sunday, 27 November 2016

Copy local scope variables in Chrome developer tools


I would like to use Chrome developer tools to access local scoped variables when debugging Javascript applications.

I am already familiar with debugging with using developer tools, including setting breakpoints and pausing code execution.

How to reminder:

  • set break point to pause execution within the desired scope
  • to access the local scope variable, type it in the console while script execution is still paused in the desired scope (see image below)


This was verified to work in Chrome version 54. Your mileage may vary using other versions.

No comments:

Post a Comment