如何调试使用不同解决方案的两个网站项目? [英] How to debug two web site projects that are in different solutions?

查看:79
本文介绍了如何调试使用不同解决方案的两个网站项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有网站项目的解决方案A,它需要调用另一个解决方案中的另一个网站项目B.我的意思是不同的Visual Studio实例

I have a solution A with a web site project that it needs to call another web site project B that is in another solution. I mean different visual studio instances

我不知道如何像在单个跟踪中一样附加它们来同时调试它们.

I don't know how to attach them to debug them at the same time like in a single trace.

有人知道我该怎么做吗?

Does anyone knows how can i do that?

谢谢

推荐答案

您可以使用两个运行的Visual Studio来做到这一点:

You can do this using two running Visual Studios:

您在IIS中设置了一个项目,而另一个项目则可以直接用完Visual Studio,然后可以在两个项目中进行调试.

You set up one of the projects in IIS and the other you can run out of Visual Studio directly then you can debug in both.

在第一个项目(在IIS中运行的项目)上,您可以附加到进程"并附加到w3wp worker进程.看到这个:

On the first project (the one running in IIS) you can 'Attach to a process' and attach to the w3wp worker process. See this:

将调试器附加到IIS实例

然后在第二个项目中,仅使用VS菜单中的Debug-> Start Debugging选项运行该项目.

Then in the second project just run the project using Debug --> Start Debugging option from the VS menu.

(可选)您可以同时在IIS中运行它们并附加到两个进程.

Optionally you can run them both out of IIS and attach to both processes.

确保您的web.config文件中允许调试.

Make sure you have debug allowed in your web.config files.

这篇关于如何调试使用不同解决方案的两个网站项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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