Reputation: 2072
I am a newbie to Backbone web applications. I have good experience in Angularjs. In angularjs, we can easily debug controller functions or get service objects by using angular.element($0).scope()
or angular.element($0).injector().get('serviceName')
.
Is there something similar available in backbone that lets me inspect the current state of the application and trigger any functions if required?
Upvotes: 2
Views: 1683
Reputation: 1553
You can try to use Chrome extension which is able to show you all views, models, collections and routers and its data.
Upvotes: 2
Reputation: 3091
Backbone doesn't provide any inspection tools out of the box.
Using the chrome dev tools debugger (adding break points) might be your best shot. I find the debugger extremely useful for inspecting and debugging backbone applications.
Upvotes: 1