Backbone-Debugger
Backbone-Debugger copied to clipboard
No __backboneAgent value present on window
Doesn't seem to work for me at all. No 'waiting for backbone' message anywhere. I tried to send backbone to debugger manually but window.__backboneAgent doesn't exist. I have it installed and see the icon in the upper right of the page, but it's grey.
Does it work for you on http://todomvc.com/examples/backbone/?
You need to open devtools (ctrl/cmd + shift + j) and then go to the "Backbone" tab and press "Restart the application in debug mode."
I think I needed to restart my browser, I was not even getting 'Backbone' tab to show up before. Now I get it but I guess I'm not sending Backbone at the right point, I get it to load but all models/views/controllers are empty :( It's probably my fault and I need to find the right place to put it, thanks.
If you get the screen with the models/views/collections lists then it means that Backbone has been successfully detected, thus you put it in the right place.
Empty models/views/collections is another matter, any chance you can share the application url (if any) or create a reproducibile example?
Unfortunately it's for work and closed source. We have extended a bit on top of Backbone so that could be why. We are using Coffeescript and extending Backbone.Model, Backbone.View, etc... using underscore extend method. Would that be enough to break it?
Hard to tell without looking at the source code, but yes it could be enough if you changed parameters or return types of Backbone core methods, i.e. if you have overridden backbone methods breaking its API.
Not sure if the v0.4.0
update has a part in it, but currently window.__backboneAgent
appears undefined for me too.
That is, when I "Restart the application in debug mode" from the "Backbone" tab, I briefly see the "Waiting for inspecting page loading..." message which quickly gets replaced by the "Restart the application in debug mode" message/link again.
When breakpointing at my activation code:
if (window.__backboneAgent) {
window.__backboneAgent.handleBackbone(Backbone);
}
I find that window.__backboneAgent
is undefined; the "Backbone" tab still shows the "Waiting for..." message at that point.
Curiously, the example at http://todomvc.com/examples/backbone/ does reveal a functional "Backbone" tab as well as a defined window.__backboneAgent
:-/
So the above was found directly after starting chrome and seeing Backbone-Debugger's update message. Restarting Chrome once more appears to have fixed it. Please ignore for now.
@cueedee the v0.4.0 was pretty much only HTML and CSS changes.
let me know if you get the problem again. It might be that the browser needs to be restarted or at least the tabs refreshed to load the new panel version.