简体   繁体   English

使用调用堆栈没有.pdb文件的OpenCV 3 Visual Studio 2017调试

[英]OpenCV 3 Visual Studio 2017 debugging with call stack no .pdb files

I installed OpenCV 3 for Microsoft Visual Studio 2017 on my Surface Pro (Windows 10 64-bit). 我在Surface Pro(Windows 10 64位)上安装了Microsoft Visual Studio 2017的OpenCV 3。 I am coding in C++. 我正在用C ++编写代码。

I need to see where my program is tripping up at when it reaches a bug, however, if the bug is in the OpenCV source code I can not see it, so I am left with guessing what the problem is. 我需要查看程序出现错误时在哪里跳闸,但是,如果该错误在OpenCV源代码中,则看不到它,因此我只能猜测问题出在哪里。

When I try to look in the call stack for an error, it can not load the pages where the source code is, instead it says the .pdb files are not loaded. 当我尝试在调用堆栈中查找错误时,它无法加载源代码所在的页面,而是表示未加载.pdb文件。 The .pdb files do not exist on my system, I have searched for them. .pdb文件在我的系统上不存在,我已经搜索了它们。 I have found solutions for if you have the .pdb files but have not been able to find anywhere that explains how to generate the .pdb files. 我已经找到了解决方案,以解决您是否拥有.pdb文件但又找不到任何地方说明如何生成.pdb文件的问题。

So here I am on this forum, can anyone help me out? 所以我在这个论坛上,有人可以帮我吗? It is extremely difficult to debug something when you do not know the problem. 当您不知道问题时,调试某些东西非常困难。

The solution was to reinstall using CMake, now the .pdb files are there and being read fine! 解决的办法是使用CMake重新安装,现在.pdb文件在那里并且可以正常读取! I can finally debug this properly woot-woot. 我终于可以调试这个正确的声音了。 Thanks, @drescherjm. 谢谢,@ drescherjm。

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

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