简体   繁体   English

对符号加载问题进行故障排除 - Visual Studio 2019 - Step Into 不再工作

[英]Troubleshooting Symbol Loading Issues - Visual Studio 2019 - Step Into no longer working

Quite suddenly no symbols are loading correctly for my UWP project in Visual Studio.突然之间,我在 Visual Studio 中的 UWP 项目没有正确加载任何符号。 When I establish a breakpoint, then press Step Into, every time it says that the appropriate symbol is not loaded.当我建立一个断点,然后按 Step Into 时,每次它都说没有加载适当的符号。

Previously, this was working fine and did not throw these symbol load errors so it seems I must have messed something up but have no clue as to what.以前,这工作正常并且没有抛出这些符号加载错误,所以看来我一定搞砸了,但不知道是什么。

I recently modified my UWP application to include a full trust helper.我最近修改了我的 UWP 应用程序以包含一个完全信任的助手。

I know this is quite vague but wondering where I should start when troubleshooting this kind of issue?我知道这很模糊,但想知道在解决此类问题时应该从哪里开始?

So far I have:到目前为止,我有:

  • Restarted my machine重新启动我的机器
  • Rebuilt my project重建我的项目
  • Deleted OBJ and BIN folder in explorer在资源管理器中删除了 OBJ 和 BIN 文件夹
  • Deleted visual studio temporary memory删除了visual studio临时memory

Any ideas as to what I should look into?关于我应该研究什么的任何想法?

The build configuration of the solution or some of your projects within may have changed at some point, it's normally what catches me out.解决方案的构建配置或您的某些项目可能在某些时候发生了变化,这通常是让我感到震惊的地方。

Build Configuration:构建配置:

Open Build \ Configuration Manager and check the project you're expecting symbols from is set to a debug based configuration.打开Build \ Configuration Manager并检查您期望符号的项目是否设置为基于调试的配置。 Symbols are not included in release builds by default.默认情况下,符号不包含在发布版本中。

配置管理器

Project Configuration:项目配置:

Open Project \ {ProjectName} Properties \ Build \ Output \ Advanced... and ensure that debugging information is not set to 'None' ('Pdb-only' or 'Portable' is fine)打开Project \ {ProjectName} Properties \ Build \ Output \ Advanced...并确保调试信息设置为“None”(“Pdb-only”或“Portable”都可以)

高级构建设置

Note: I don't have the reputation to post this as a comment yet, sorry!注意:我还没有发表评论的声誉,对不起!

You could check the following steps to do this.您可以检查以下步骤来执行此操作。

  1. Right click project-> Properties -> Build -> Advanced ->Set Debugging information to Full右键项目->属性->构建->高级->将调试信息设置为完整
  2. Select Tools -> Import and Exprot settings -> Reset all settings Select工具->导入和导出设置->重置所有设置
  3. When debugging, open Debug -> Windows -> Modules .调试时,打开Debug -> Windows -> Modules You could right click.dll -> Symbol Load information , check if the pdf file exists.您可以右键单击.dll ->符号加载信息,检查pdf文件是否存在。 If it contains "cannot find or open the pdb file" error message, you could right click on the.dll and select Load Symbols , browse to the directory containing the corresponding.pdb file.如果它包含“找不到或打开 pdb 文件”错误消息,您可以右键单击.dll 和 select加载符号,浏览到包含相应.pdb 文件的目录。

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

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