在Visual Studio 2010向导中调试JScript [英] Debugging JScript in Visual Studio 2010 Wizard

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

问题描述

我现在两天都在努力解决这个问题。 我有一个VS2010解决方案,其中包含一些JScript代码(default.js),用于组成自定义应用程序向导的处理。 我已经尝试了所有我能找到的东西(即在高级页面中设置IE9脚本调试标志
),但是,无济于事。 当我尝试在代码中设置断点时,我始终得到"这不是断点的有效位置"。 有谁知道怎么让这个工作?

I've bee struggling with this going on two days now.  I have a VS2010 solution that contains some JScript code (default.js) that makes up the processing of a custom app wizard.  I've tried everything I could find (ie. setting IE9 script debug flags in Advanced page), but, to no avail.  When I try to set a breakpoint in the code, I consistently get "This is not a valid location for a breakpoint".  Does anyone know how to get this to work?

Gort,Klaatu,Barada Nikto

Gort, Klaatu, Barada Nikto

推荐答案

亲爱的BaradaNikto,

Dear BaradaNikto,

无法在VS2010中进行Javascript调试。也许有可能使用一些外部插件。我一直在做的是在谷歌浏览器中调试。在Chrome中加载页面时,请按:Ctrl + Shift + i 

Javascript debugging in VS2010 is not possible. Maybe it is possible with some external plugin. What I always do is debugging in Google Chrome. When the page is loaded in Chrome press: Ctrl + Shift + i 

在源选项卡中,您可以设置断点并检查变量。希望这会帮助你。

In the source tab you can set breakpoints and check variables. Hope this helps you out.


这篇关于在Visual Studio 2010向导中调试JScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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