简体   繁体   English

相当于GUD中Visual Studio的监视窗口

[英]Equivalent of Visual Studio's Watch Window in GUD

I am using Emacs 23 to do some C development, with GUD (using GDB) as my debugger. 我正在使用Emacs 23进行一些C开发,并使用GUD(使用GDB)作为调试器。

I have looked online, but haven't yet found an equivalent to Visual Studio's Watch Window in GUD. 我在线上看过,但还没有找到与GUD中Visual Studio的“监视窗口”等效的视图。 Essentially, this window lets you insert a list of expressions, which are evaluated each time the program is stepped, and shows you their value. 本质上,此窗口可让您插入表达式列表,每次执行程序时都会对其进行评估,并显示其值。 Is there a similar feature to this in GUD? GUD中有与此类似的功能吗?

I have seen that GDB has a feature called watch points, but that is not what I'm looking for. 我已经看到GDB具有称为监视点的功能,但这不是我想要的。

Probably not a complete answer to what you want, but this might help wrt the Lisp debugger: Use e to evaluate a Lisp sexp that you enter. 可能不是您想要的答案的完整答案,但这可能会对Lisp调试器有所帮助:使用e评估您输入的Lisp sexp。 This can be as complex as you like. 这可能是您想要的复杂。 In particular, it can be a sexp that uses, say, pp-eval-expression to show, in another window, a complex return value from evaluating a sexp. 特别地,它可以是使用例如pp-eval-expression在另一个窗口中显示来自评估sexp的复杂返回值的sexp。 Naturally, you can have a single sexp evaluate multiple sexps. 自然,您可以让一个sexp评估多个sexp。

Having done this once, just use e with Mp to repeat it anytime during debugging, to get the updated evaluations of the sexps. 这样做一次,只需在调试过程中随时将eMp配合使用即可重复进行,以获得更新的六边形评估。 You can also select the sexp as the secondary selection , and they use M-mouse-2 to retrieve it for e at any time. 您也可以选择作为SEXP 二次选择 ,以及他们使用M-mouse-2检索它e在任何时间。

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

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