Anirudhan J
Anirudhan J

Reputation: 2072

Debugging backbone apps using developer tools

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

Answers (2)

Eugene Glova
Eugene Glova

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

u.k
u.k

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

Related Questions