Setting breakpoints in viewmodels in Durandal

烈酒焚心 提交于 2019-12-13 23:36:24

问题


How do I use Google Chrome's (F12) feature to set breakpoints in Durandal's viewmodels?


回答1:


  1. Load the page you want to debug
  2. Hit F12 in Chrome
  3. click on the 'Sources' tab
  4. In the pane on the left you should be able to see all your different view model js files
  5. Choose one of the js files by clicking on it
  6. Set a breakpoint by clicking on the code line number in the source code view
  7. You can refresh the browser page and your breakpoints will remain intact


来源:https://stackoverflow.com/questions/15789025/setting-breakpoints-in-viewmodels-in-durandal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!