简体   繁体   English

ASP.NET JavaScript调试在2个项目中不起作用

[英]ASP.NET javascript debugging does not work in 2 projects

I have 2 asp.net web applications, one of which is the main application and the second one is referencing the first application for like master pages , themes etc, and the main frameset that will point to the second application's webform based on database values (menu generated from database); 我有2个asp.net Web应用程序,其中一个是主应用程序,第二个是针对第一个应用程序引用类似的母版页,主题等,并且主要框架集将基于数据库值指向第二个应用程序的Web表单(从数据库生成的菜单);

All my actual forms are in the second application, but the problem is when I set a breakpoint on the javascript file on my second application, it doesnt go into the breakpoint? 我所有的实际表单都在第二个应用程序中,但是问题是当我在第二个应用程序的javascript文件上设置断点时,它没有进入断点吗?

Any advice please? 有什么建议吗? I need to get the debugger working, without having the need to put in the "debugger" keyword in javascript if possible. 我需要使调试器正常工作,如果可能的话,无需在javascript中放入“ debugger”关键字。

My IDE is visual studio 2008 SP 1 and IE 8 as the browser. 我的IDE是Visual Studio 2008 SP 1和IE 8作为浏览器。

Cheers 干杯

Do you have the solution set up to start up both projects with debugging when you start the debugger? 启动调试器时,是否已设置解决方案以通过调试启动两个项目? To set multiple startup projects, right-click on the solution. 要设置多个启动项目,请在解决方案上单击鼠标右键。 Choose Set Startup Projects. 选择设置启动项目。 In the dialog, select multiple startup projects and set the two web sites to start up with debugging when the debugger is started. 在对话框中,选择多个启动项目,并将两个网站设置为在启动调试器时启动调试。

For what it's worth, I usually like to debug my javascript in Firefox with Firebug. 对于它的价值,我通常喜欢使用Firebug在Firefox中调试我的JavaScript。 I much prefer that to the developer tools in IE 8. 我更喜欢IE 8中的开发人员工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM