Select and execute a block of code in the Sources Panel
bookmark_borderbookmark
Stay organized with collections
Save and categorize content based on your preferences.
Umar Hansa
You can use the shortcut Ctrl + Shift + E to run a block of highlighted code in the Sources Panel. In the clip, I am paused at a breakpoint, and want to access a bunch of variables attached to the this keyword. I select the block where they're defined and change:
this.foo='hello'this.bar='world'
Into
foo='hello'bar='world'
Finally, I execute that changed block of code so I have foo and bar in scope and can use them while debugging.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2015-07-16 UTC."],[],[]]