简体   繁体   English

什么是Mac上的本机(C / C ++)应用程序的好调试器?

[英]What is a good debugger for native (C/C++) applications on the Mac?

I'm a native developer switching to the Mac from Windows. 我是从Windows切换到Mac的本地开发人员。 I have a lot of experience debugging using Windbg (CDB-GUD on Emacs) and Visual Studio and was wondering which debugger on the Mac would give me the closest experience? 我有很多使用Windbg(Emacs上的CDB-GUD)和Visual Studio调试的经验,并且想知道Mac上的哪个调试器会给我最贴心的体验? I'm specifically looking for the following features: 我特意寻找以下功能:

  • Ability to debug arbitrary executables (VS lets me do this by setting the debug target to any executable). 能够调试任意可执行文件(VS允许我通过将调试目标设置为任何可执行文件来完成此操作)。
  • Customizable keyboard shortcuts. 可自定义的键盘快捷键。 At least f5, f9, f10, f11, Shift f11. 至少f5,f9,f10,f11,Shift f11。 I don't care so much about the rest. 我不在乎其余的事情。

I don't use VS to do any kind of editing so that is not important to me. 我不使用VS进行任何编辑,这对我来说并不重要。

The most comfortable setup so far has been running Emacs GUD - which I do on Windows too using CDB-GUD, but wonder if there is something better out there. 迄今为止最舒适的设置是运行Emacs GUD - 我在Windows上也使用CDB-GUD,但是想知道是否有更好的东西。

Update: I understand GDB is the debugger most people use. 更新:我了解GDB是大多数人使用的调试器。 I guess my original question was poorly worded. 我想我原来的问题措辞不好。 I really meant to ask what debugger GUI would give me an environment really similar to Visual Studio. 我真的想问一下调试器GUI会给我一个非常类似于Visual Studio的环境。

Most people use gdb, either from the console or from Xcode -- the latter being much like you are used to in windows I imagine. 大多数人使用gdb,无论是从控制台还是从Xcode - 后者就像你在我想象的Windows中习惯的那样。 LLVM also has a debugger, also available in the Xcode GUI. LLVM还有一个调试器,也可以在Xcode GUI中使用。

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

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