简体   繁体   English

C ++ Microsoft Visual Studio 2015调试问题(无法找到或打开PDB文件。)

[英]C++ Microsoft Visual Studio 2015 Debug issue (Cannot find or open the PDB file.)

Very new to coding as well as compilers. 对编码和编译器来说都是非常新的东西。 I have recently started learning C++ and have been attempting to use Microsoft Visual Studio 2015 as my compiler. 我最近开始学习C ++,并一直尝试使用Microsoft Visual Studio 2015作为编译器。 Unfortunately every time I try to compile even the simplest of programs, I continuously get the same error. 不幸的是,每次我尝试编译最简单的程序时,我都会不断遇到相同的错误。 I have looked for other solutions but everything seems to be outdated showing either 2010 or 2013 Microsoft VS. 我在寻找其他解决方案,但显示2010或2013 Microsoft VS的一切似乎都已过时。 I have tried editing the debug options, "Load dll exports (Native Only) as I saw that that could have been a possible solutions but that also did not solve the issue. If anyone can help me out it would be very much appreciated, also if you could explain the issue as simply as possible it would also be much appreciated as I said before, I know very little about coding or the compilers yet. 我尝试编辑调试选项,“加载dll导出(仅本机),因为我看到这可能是一种可能的解决方案,但也没有解决问题。如果有人可以帮助我,将不胜感激,如果您能尽可能简单地解释该问题,那么就像我之前所说的那样,我将不胜感激,但我对编码或编译器知之甚少。

  1. In Debug -> Options -> Symbols check if you have folder where you have PDBs and Microsoft Server. 在“调试”->“选项”->“符号”中,检查是否有包含PDB和Microsoft Server的文件夹。 Also create folder for Cache, and have "Load all modules" checked 还要为缓存创建文件夹,并选中“加载所有模块”
  2. Get Debug -> Windows -> Modules, and start app step by step. 获取Debug-> Windows-> Modules,然后逐步启动应用程序。 Go inside until you see you app in Modules, right click on your module and try to force loading symbols. 进入内部,直到在“模块”中看到您的应用程序,右键单击模块并尝试强制加载符号。

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

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