This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete in scope variables in the Console when paused.
https://bugs.webkit.org/show_bug.cgi?id=19115 Reviewed by Geoffrey Garen. * page/inspector/Console.js: (WebInspector.Console.prototype.completions): If the expressionString is null or empty and the debugger is paused, call variablesInScopeForSelectedCallFrame to get an object that declares all the in scope variables. That way "top level" expressions are completed. * page/inspector/ScriptsPanel.js: (WebInspector.ScriptsPanel.prototype.variablesInScopeForSelectedCallFrame): Return an object that has all the variables that are in scope for the selected call frame. The value of each property is just true. The return object is useful for quick lookups or auto completion. Canonical link: https://commits.webkit.org/28222@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@35814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 3 changed files with 44 additions and 1 deletion.