VS2013 Javascript 调试 [英] VS2013 Javascript Debugging

查看:38
本文介绍了VS2013 Javascript 调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何开启页面内JavaScript脚本标签调试?

Does any one know how to enable in page JavaScript script tag debugging?

在 vs2012 中,我可以转到在调试器中运行的 Visual Studio 中的页面并创建断点,但是在 vs2013 中我得到无法在此位置插入断点"?

In vs2012 i can go to the page in visual studio which is running in the debugger and create a break point however in vs2013 i get "A breakpoint could not be inserted at this location"?

谢谢

推荐答案

尽量将脚本保存在单独的文件中,并将断点放在这些文件中.我遇到了同样的问题,但是当我将 Java 脚本从视图移动到脚本文件时,我能够进行调试.这可能不是解决方案,但至少您应该能够工作.

try to keep your scripts in separate files and put the breakpoints in that files. I had the same problem but when I moved java scripts from my views to script files I was able to debug. It may not be a solution but at least you should be able to work.

这篇关于VS2013 Javascript 调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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