问题
How do I use Google Chrome's (F12) feature to set breakpoints in Durandal's viewmodels?
回答1:
- Load the page you want to debug
- Hit F12 in Chrome
- click on the 'Sources' tab
- In the pane on the left you should be able to see all your different view model js files
- Choose one of the js files by clicking on it
- Set a breakpoint by clicking on the code line number in the source code view
- You can refresh the browser page and your breakpoints will remain intact
来源:https://stackoverflow.com/questions/15789025/setting-breakpoints-in-viewmodels-in-durandal