Emacs:如何在文本终端中启用突出显示断点(emacs -nw)

时间:2016-10-16 14:48:09

标签: debugging emacs breakpoints

Emacs在文本模式下不显示断点。 我尝试整合了建议herehere,但失败了(我不是一个lisp程序员)。

我试过了:

    @model IEnumerable<PersonViewModel>

    <table class="table">
      @foreach(var personVM in Model){
        <tr>
           <td>@personVM.Color</td>
           <td>@personVM.CustID</td>
           <td>@personVM.PlayerName</td>
        </tr>
       } 
    </table>

产生的错误是

(require 'gdb-mi) (setq default-text-properties '(foo 1111)) (defun set_breakpt_cmds () "set breakpoint and indicate on editor" (interactive) (gud-break) (gdb-put-breakpoint-icon "false" (get-text-property 1 'foo))) (global-set-key (kbd "<f12>") 'set_breakpt_cmds)

注意:类似的问题是thisthis之后)。然而,那里的解决方案不适合我,因为我希望能够从Wrong number of arguments: (lambda (arg) "Set breakpoint at current line." (interactive "p") (if (not gud-running) (gud-call "dbstop \ at %l in %f" arg))), 0文件调用修复程序。这样,当我设置一个新的linux盒子时,更容易复制我的emacs配置。

由于

1 个答案:

答案 0 :(得分:1)

您得到的错误来自gud-break期望参数(未使用)的事实,因此请使用(gud-break 1)

信息内容如下:

  • 错误属于wrong number of arguments
  • 在调用(lambda (arg) ...)时(我们看到预期只有一个参数)
  • 并使用0参数调用它。