在Durandal的视图模型中设置断点 [英] Setting breakpoints in viewmodels in Durandal

查看:109
本文介绍了在Durandal的视图模型中设置断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Google Chrome浏览器的(F12)功能在Durandal的视图模型中设置断点?

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

推荐答案


  1. 加载要调试的页面

  2. 在Chrome中点击F12

  3. 点击来源标签

  4. 在左侧窗格中,您应该能够看到所有不同的视图模型js文件

  5. 通过单击选择一个js文件

  6. 通过在源代码视图中单击代码行号来设置断点

  7. 您可以刷新浏览器页面,并且断点将保持不变

  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

这篇关于在Durandal的视图模型中设置断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆