Debugging Javascript (Backbone and Marionette)

后端 未结 4 1648
余生分开走
余生分开走 2021-02-01 08:24

Right now, while I am debugging backbone or marionette using the chrome dev tools, I end up setting break points and whatnot, but once the code pauses, its hard to tell what typ

4条回答
  •  孤城傲影
    2021-02-01 08:39

    Also try adding

    "use strict"
    

    at the top of your application. Instead of giving you stack trace errors like undefined on line 1 of backbone.marionette.js it will output the instance and be more descriptive information like HistoryView was not found.

提交回复
热议问题