如何在 Visual Studio C++ (Express) 中使用 GDB 来调试我的 GCC Makefile 项目? [英] How can I use GDB from inside Visual Studio C++ (Express) to debug my GCC Makefile projects?

查看:20
本文介绍了如何在 Visual Studio C++ (Express) 中使用 GDB 来调试我的 GCC Makefile 项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Visual Studio (express) 2005/2008(现在没关系)上有几个 Makefile 项目,用于使用 MinGW GCC 编译器编译一些应用程序.我不想使用 MS 编译器,因为有些功能只能在 GCC 上使用.

I've a couple of Makefile projects on my visual studio (express) 2005/2008 (doesn't matter for now) to compile some application using the MinGW GCC compiler. I don't want to use the MS compiler because there are features that only are available on GCC.

现在我想从 VS 内部进行调试,因为我正在使用它进行编码,但这需要我使用 GDB(它从命令行工作),但我更喜欢使用 IDE 工具.

Now I'd like to debug from inside VS since I'm coding from it but this requires me to use GDB (it works from the command line) but i prefer to use the IDE tools.

有没有办法做到这一点?就算Express版受限,不支持也可以用完整版吗?

Is there a way to do this? Even if the Express version is limited and doesn't support it can it be done using the full version?

推荐答案

如果您更喜欢在 Windows 下工作的 IDE,您可能对 代码块Qt Creator.它们是免费的.

If you prefer IDE working under Windows you may be interested in Code Blocks or Qt Creator. They are free.

也有用于 Unix 的商业开发工具:MagicC++ (IDE),调试器如 TotalView, Allinea, 零错误, UndoDB ...

There are commercial dev-tools for Unixes too: MagicC++ (IDE), debuggers like TotalView, Allinea, Zero-bugs, UndoDB ...

如果您想继续使用 Visual Studio,请查看此 WinGDB.Express 版本不支持它(根本不支持扩展).但微软最近发布了免费 Visual Studio 社区(几乎具备专业版的所有功能),免费且学生/业余爱好者/初创公司可以合法使用 - 个人免费用于开发商业应用程序,免费开发开源应用程序的组织,仅当组织的计算机少于 250 台且年收入少于 1000 万美元时,对开发商业应用程序的组织(最多 5 个个人用户)免费.有关详细信息,请参阅 VS 2013 社区许可证.

If you want to stay with Visual Studio check this WinGDB. It is not supported by Express edition (extensions are not supported at all). But Microsoft have recently released free Visual Studio Community (has almost all features of Professional Edition), which is free and can be legally used by students/hobbyists/startups - free for individuals for developing commercial applications, free for organizations for developing open source applications, free for organizations (for up to 5 individual users) for developing commercial applications only if the organization has less than 250 computers and has less than $10M annual revenue. Refer VS 2013 Community License for more information.

顺便说一下 VirtualBox 可能会很有帮助(我将(开放)Solaris 或 Linux 作为 VBox 机器进行调试非常频繁);-).

By the way VirtualBox may be very helpful (I debug (Open)Solaris or Linux as VBox machines very frequently) ;-).

这篇关于如何在 Visual Studio C++ (Express) 中使用 GDB 来调试我的 GCC Makefile 项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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