Visual Studio调试源文件路径问题。 [英] Visual Studio debug source file path issue.

查看:582
本文介绍了Visual Studio调试源文件路径问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Team,

Hello Team,

我们正在尝试使用Visual Studio调试应用程序。我们将在TFS存储库中的服务器和源文件中包含pdb文件。

We are trying to debug applications using Visual Studio. We will have pdb files in server and Source files in TFS repository.

我们遵循的步骤:

1。运行应用程序

2。在Debug中更改了几个选项 - >选项 - >符号。

2. Changed few options in Debug --> Options --> symbols.

3。附加到流程,附上第1步申请。

3. Attached to process, attached step 1 application.

4。打开解决方案资源管理器,右键单击它并指定源文件路径。

4. open solution explorer, right click on it and specified source file path.

这里我们必须从API加载源文件。但是visual studio无法加载该文件。请在源文件加载时帮助我们。

here we have to load source file from an API. but visual studio unable to load that file. Please help us, on source file loading.

例如:https://myurl.com/source/Myproj/mymodule/file.cs

eg: https://myurl.com/source/Myproj/mymodule/file.cs

请帮助我们解决此问题。

Please help us to resolve this issue.

推荐答案

您好KR Prasad,

Hi K R Prasad,

根据您的说法步骤,如果我将源文件路径添加为网络格式,它将不会加载该文件。因为解决方案属性 - >调试源文件只能在本地计算机上选择源文件。当您点击"..."时
后面的按钮添加了源文件路径,它只显示文件资源管理器 - >选择目录窗口。我们无法在此处设置网络源文件路径。

According to your steps, if I add the source file path as a network format, it will not load that file. Because the Solution Properties -> Debug Source Files only could choose source files on local machine. When you click the "..." button behind the added source file path, it only shows the File Explorer -> Select Directory window. We could not set network source file path here.

因此,如果您想在TFS存储库上调试源代码,请检查文件到本地计算机并在Visual Studio中打开。然后将本地源文件路径添加到Solution Properties - >调试源文件以加载此源文件。

So if you want to debug the source code on a TFS repository, please checkout the files to your local machine and open in Visual Studio. Then add the local source file path to Solution Properties -> Debug Source Files to load this source file.

将源文件签出到本地并在Visual Studio中打开的另一个原因是,您可以在Visual Studio代码编辑器中添加断点,这可能是帮助您调试源代码。

Another reason for checking out the source file to local and open in Visual Studio is that, you could add breakpoints in Visual Studio code editor, which could help you debug the source code.

最好的问候,

Weiwei

Best Regards,
Weiwei


这篇关于Visual Studio调试源文件路径问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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