在Durandal的视图模型中设置断点 [英] Setting breakpoints in viewmodels in Durandal
本文介绍了在Durandal的视图模型中设置断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用Google Chrome浏览器的(F12)功能在Durandal的视图模型中设置断点?
How do I use Google Chrome's (F12) feature to set breakpoints in Durandal's viewmodels?
推荐答案
- 加载要调试的页面
- 在Chrome中点击F12
- 点击来源标签
- 在左侧窗格中,您应该能够看到所有不同的视图模型js文件
- 通过单击选择一个js文件
- 通过在源代码视图中单击代码行号来设置断点
- 您可以刷新浏览器页面,并且断点将保持不变
- 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
这篇关于在Durandal的视图模型中设置断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文