使用断点来调试IE和VS2008中的Javascript [英] Using breakpoints to debug Javascript in IE and VS2008

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

问题描述

我无法在Studio中使用Javascript的断点。如果我使用调试器,我可以调试;

I am not able to use the breakpoint in Studio with Javascript. I'm able to debug if I use the debugger;

我见过这个在VS.Net 2005中进行调试时,断点没有联系起来问题。我尝试了答案但它没有用。

I've seen this Breakpoint not hooked up when debugging in VS.Net 2005 question already. I tried the answer and it didn't work.

在模块窗口中查看,V.Mvc.Jobtrakt.PDB正确加载,但它指向一个临时文件夹
C:\ WINDOWS \ MicroStoswork \ Framework \v2.0.50727 \Temporary ASP.NET Files\root\dbc0c0c5\f64a99b3\assembly\dl3\dede5555b3\ eb1303b1_9760c901 \.V.Mvc.Jobtrak.pdb:已加载符号。

Looking in the Modules window, V.Mvc.Jobtrakt.PDB is loaded properly, but it points to a temp folder C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\dbc0c0c5\f64a99b3\assembly\dl3\9de055b3\eb1303b1_9760c901\V.Mvc.Jobtrak.pdb: Symbols loaded.

我原以为它会指向:
\ JobTrak \Website \ V.Mvc.Jobtrak \V.Mvc.Jobtrak \ obj \ Debug(这是在项目目录中)

I would have thought that it would point to: \JobTrak\Website\V.Mvc.Jobtrak\V.Mvc.Jobtrak\obj\Debug ( this is within the project directory)

但无论我关闭哪个位置VS 2008然后吹掉临时文件夹(上面列出的),bin和obj文件夹。

But regardless of the location I closed VS 2008 and then blew away the temp folder (listed above), the bin and obj folders.

打开VS 2008并干净利落。我在js中设置了一个断点,它似乎现在可以正常工作(断点被填入)
开始调试,它永远不会在断点处中断。看看断点,它现在是一个带有红点和警告指示的红色圆圈。将鼠标悬停在断点上会给我一些有用的信息:断点当前不会被击中。该位置无法映射到客户端脚本。请参阅ASPX断点映射的帮助。我没有被重定向,断点与函数有关。等等等等,这应该有效。

Opened VS 2008 and did a clean. I set a break point in the js and it seemed like it would work now ( The breakpoint was filled in) Started to debug and it never breaks on the breakpoint. Look at the break point and it now is a red circle with a red dot and a warning indicator. Hovering over the breakpoint gives me this useful information: The breakpoint will not currently be hit. The location could not be mapped to a client side script. See help for ASPX Breakpoint mapping. I am not being redirected, the breakpoint is with in a function. blah blah blah this should be working.

所以我想知道是否有人有任何想法?
是否有人能够在VS2008中设置断点并使它们有效?

So I was wondering if anyone has any ideas? Is anyone able to set breakpoints in VS2008 and have them work?

推荐答案

尝试在源代码中输入debugger你想要打破的地方

try typing "debugger" in the source where you want to break

这篇关于使用断点来调试IE和VS2008中的Javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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