使用Visual Studio 2008 / IE7在远程站点上调试JavaScript [英] Debug JavaScript on a remote site using Visual Studio 2008 / IE7

查看:91
本文介绍了使用Visual Studio 2008 / IE7在远程站点上调试JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用IE7和Visual Studio 2008调试驻留在第三方网站上的JavaScript。



我如何打破调试器?没有JavaScript错误,我无法访问JavaScript源代码(因为它位于第三方站点)。
我只想浏览JavaScript,看看它是如何工作的。



页面上的JavaScript我正在调试重定向。



请注意 - 我正在调试一个仅IE7的JavaScript问题,所以我不能在这种情况下使用Firefox / FireBug。

解决方案

使用vs web开发人员express我首先创建了一个项目的URL。我使用的步骤列表如下:

只有diff为您的情况,我认为将而不是F5,从菜单调试 - >进入中选择,您将立即进入调试器。 / p>


  • 文件>新网站...

  • 使用空网站模板,位置是文件系统,只需将文件名作为默认值,该文件名应该在visual studio 2008新创建的目录中的我的文档目录中。

  • 然后在右边解决方案资源管理器面板右键单击目录条目并选择使用...浏览。

  • 选择列表中的Internet Explorer,并将其设置为默认值解决方案将使用IE作为默认值,而不是操作系统)。

  • 点击取消coz你不想做任何事情(如果你浏览它会打开一种封面您的操作系统默认浏览器中的页面)。

  • 再次右键单击目录条目,然后单击开始选项。

  • c hoose'开始URL',并放入要调试的网站的地址。单击确定完成。

  • 然后在菜单中单击开始调试图标,或在调试菜单中或F5。

  • if这是第一次说,它需要制作一个web.config文件,其中启用了调试。只需创建一个新的,没有问题。

  • IE将以调试模式在您的URL上打开。


I would like to debug JavaScript that resides on a 3rd-party site, using IE7 and Visual Studio 2008.

How can I break into the debugger? There are no JavaScript errors and I don't have access to the JavaScript source (since it is on a third-party site). I just want to walk through the JavaScript and see how it's working.

The JavaScript on the page I'm debugging redirects immediately.

Please note - I am debugging a JavaScript problem that is IE7-only, so I can't use Firefox/FireBug in this case.

解决方案

using vs web developer express i created a project for the URL first. the list of steps i used follow.
only diff for your case i think would be instead of F5, choose from the menu "debug -> step into" and you'll enter the debugger straight away.

  • file > new web site...
  • use the 'empty web site' template, with location being the filesystem, and just leave the filename as the default which should be in your 'my documents' dir inside the newly created dir for 'visual studio 2008'.
  • then on the right panel for 'solution explorer' right click on the dir entry and choose 'browse with...'.
  • choose internet explorer in the list and 'set as default' (this will only mean the 'solution' will use IE as the default, not the OS).
  • click cancel coz you don't wanna do anything yet (if you browse it'll open a kind of cover page in your OS default browser).
  • right click again on the dir entry and click 'start options'.
  • choose 'start URL' and put in the address of the website you wanna debug. click OK to finish.
  • then in the menu click the 'start debugging' icon, or in the menu under debug, or F5.
  • if this is the first time then says it needs to make a 'web.config' file in which debugging is enabled. just create a new one, no prob.
  • IE will open on your URL in debug mode.

这篇关于使用Visual Studio 2008 / IE7在远程站点上调试JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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