Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Proposal: can-coach - devtools for CanJS #3861
This proposal is to create first-party devtools for CanJS.
I'm calling this
Here are some features of
This would allow you to select a component, see the properties on its viewModel, and modify the enumerable ones (you wouldn't be able to modify properties defined by getters, etc):
This would allow you to trace through the dependencies of the observables in your application. It would be built on top of the awesome work in
This would allow you to inspect the stack in
Wait, is this devtools?
The demos above are using a prototype that's just built as a web-app and displayed as a kind of pop-over. I think there are some major benefits to this:
There are also major downsides:
The last downside (and probably the one before it) kind of makes this a non-starter, so we would have to build this as real devtools, probably only in Chrome at first.
It's possible we could also make parts of it available "in the page" for use in JSBin and just leave out those features, although we would prioritize getting the devtools version fully-functional.
https://chrome.google.com/webstore/detail/canjs-devtools/hhdfadlgplkpapjfehnjhcebebgmibcb is available. Going to close this. Issues for that are in https://github.com/canjs/devtools/issues.