由 ASP.NET 项目托管时未命中 Silverlight 断点

发布于 2024-09-16 13:55:43 字数 744 浏览 4 评论 0原文

我正在使用 Visual Web Developer 2008 Express + Silverlight 3 Tools + Silverlight 3 Developer Runtime,在 Firefox 3.6.8 中进行调试。

当我创建一个 Silverlight 项目并让 IDE 设置一个 ASP.NET 站点来托管它时,断点将不会被命中。如果我创建一个 Silverlight 项目那就没问题了。当 IDE 将两个项目配对在一起时,一定出现了问题。

我在网上尝试了很多解决方案,但没有一个有效。 (清除 firefox 缓存、重建解决方案、调整项目属性、重新安装 SL Tools/Runtime、将 Debug="true" 添加到 aspx 文件等)*.pdb 文件显然位于输出 *.xap 文件的同一文件夹中。

无论如何,如果有人能为我指明方向,那就太好了!

(顺便说一句,解决方案之一是通过“调试 > 窗口 > 模块”窗口手动加载符号,但是我在设计时或调试时找不到此窗口。这是非 Express 版本独有的功能吗?)

<强>编辑:问题解决了。原来是FireFox不兼容。更改了 配置值 并开始了一个全新的解决方案(旧的解决方案仍然有问题),它终于起作用了。

I'm using Visual Web Developer 2008 Express + Silverlight 3 Tools + Silverlight 3 Developer runtime, debugging in Firefox 3.6.8.

When I create a Silverlight project and let the IDE set up an ASP.NET site to host it, the breakpoints will not be hit. If I create a single Silverlight project it will be fine. Something must be wrong when the IDE is pairing the two projects together.

I've tried many solutions on the net, none of them worked. (clearing firefox cache, rebuilding solution, tweaking project properties, reinstalling SL Tools/Runtime, adding Debug="true" to aspx file, etc.) The *.pdb file is clearly in the same folder of the output *.xap file.

Anyway if anyone can point me a direction it will be really great!

(BTW, one of solution involves loading symbols manually through "Debug > Window > Modules" window, however I couldn't find this window in design time or debug time. Is this a feature exclusive to non-Express editions?)

EDIT: Problem solved. Turns out it's the incompatibility with FireFox. Changed a config value and started a brand new solution (older solution still had problem), it finally worked.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泪眸﹌ 2024-09-23 13:55:43

尝试在 Internet Explorer 中运行它 - 连接到 Firefox 时可能会出现错误: http:// forums.silverlight.net/forums/t/755.aspx

Try running it in internet explorer - there might be bugs regarding attaching to firefox: http://forums.silverlight.net/forums/t/755.aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文