如何使用Microsoft Visual C ++调试器调试MinGW EXE?

时间:2021-06-12 20:32:22

How can I debug a MinGW EXE with the Microsoft Visual C++ debugger?

如何使用Microsoft Visual C ++调试器调试MinGW EXE?

2 个解决方案

#1


4  

You can attach the Visual C++ debugger to any process running on the system (from the Visual C++ menu). But for being able to step through your source code Visual C++ would have to load the symbol file (.pdb if I remember correctly) and I don't think GCC generates those files.

您可以将Visual C ++调试器附加到系统上运行的任何进程(从Visual C ++菜单)。但是为了能够单步执行源代码,Visual C ++必须加载符号文件(如果我没记错的话,还是.pdb),我不认为GCC会生成这些文件。

#2


1  

Exists many Visual studio extensions such us: WinGDB, VisualGDB you can find it on the web. It allows you to debug as regular Visual Studio project. These projects are not free but it has full functional 30 days trial. It has some restrictions but it's good enough.

存在许多像我们这样的Visual Studio扩展:WinGDB,VisualGDB,你可以在网上找到它。它允许您作为常规Visual Studio项目进行调试。这些项目不是免费的,但它有30天的全功能试用期。它有一些限制,但它已经足够好了。

#1


4  

You can attach the Visual C++ debugger to any process running on the system (from the Visual C++ menu). But for being able to step through your source code Visual C++ would have to load the symbol file (.pdb if I remember correctly) and I don't think GCC generates those files.

您可以将Visual C ++调试器附加到系统上运行的任何进程(从Visual C ++菜单)。但是为了能够单步执行源代码,Visual C ++必须加载符号文件(如果我没记错的话,还是.pdb),我不认为GCC会生成这些文件。

#2


1  

Exists many Visual studio extensions such us: WinGDB, VisualGDB you can find it on the web. It allows you to debug as regular Visual Studio project. These projects are not free but it has full functional 30 days trial. It has some restrictions but it's good enough.

存在许多像我们这样的Visual Studio扩展:WinGDB,VisualGDB,你可以在网上找到它。它允许您作为常规Visual Studio项目进行调试。这些项目不是免费的,但它有30天的全功能试用期。它有一些限制,但它已经足够好了。