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

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

问题描述

我在Visual Studio 2005(2008/2008)上使用MinGW GCC编译器编译了一些Makefile项目(现在无关紧要)编译了一些应用程序。我不想使用MS编译器,因为有些功能只能在GCC上使用。



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



有没有办法做到这一点?即使Express版本有限并且不支持它,可以使用完整版本来完成吗? 如果您更喜欢在Windows下工作的IDE您可能对代码块 Qt Creator 。它们是免费的。



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



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



顺便说一句, VirtualBox 可能会非常有帮助(我调试(打开)Solaris或Linux作为VBox机器非常频繁); - )。


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.

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.

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?

解决方案

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

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

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.

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天全站免登陆