Add hooks so that the Developer Tools Console can be used to debug the running app
See original GitHub issueDescription
In working on the PR for #3720, I found myself missing something that is very helpful in testing out new code or ideas in Atom. In Atom, there is the atom
global that is the gateway into the entire Atom public API, which can be accessed directly from the Developer Tools Console in any Atom window. This is very helpful for new community developers to learn how Atom works under the covers without having to write a full package to test their theories.
It might be useful for there to be a desktop
global with hooks to various key state stores that could be probed for information or even the state altered in specific ways. This would be helpful for community developers to learn how Desktop works interactively.
Version
GitHub Desktop version: v1.1.1-beta1
OS version: Mac OS X 10.13.3
Steps to Reproduce
- Launch GitHub Desktop
- Press <kbd>Shift+Cmd+I</kbd> to open the developer tools
- Click the Console tab
- Type
desktop.appStore.getRepositoryState()
Expected behavior: Get an object describing the repository’s state
Actual behavior: Uncaught ReferenceError: desktop is not defined
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (5 by maintainers)
Top GitHub Comments
@lee-dohm