vim 9.2.1342 : Termdebug fail to stop on gdb exit (can't restart a termdebug session and callbacks not called)

未關閉
#21,982 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 13 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
vim
領域
devtools

研究方向

The issue names the TermdebugStartPost/TermdebugStopPre autocmds and the “Terminal debugger already running” guard, but no file. Start from Termdebug’s session start/stop handling, reproduce with :Termdebug, quit gdb, then try :Termdebug again. Done means quitting gdb fires TermdebugStopPre, clears the running state and leftover buffers, and allows a fresh session.

由索引模型根據 Issue 內容生成。

描述

bug
Steps to reproduce
  1. launch a termdebug session
  2. do some debug
  3. quit gdb (windows closes)
  4. :Termdebug (fail, termdebug still on. ls show several buffers opened by termdebug)
    [termdebug] Terminal debugger already running, cannot run two

I've a vim script that triggers on

augroup MyTermDebugOverrides
    autocmd!
    autocmd User TermdebugStartPost call s:EnterDebugMode()
    autocmd User TermdebugStopPre  call s:LeaveDebugMode()
augroup END

the LeaveDebugMode() is not called

Expected behaviour

TermdebugStopPre autocmd shall be called
termdebug session shall be ended

Version of Vim

9.2.1342

Environment

OS : gentoo
Terminal : gvim

Logs and stack traces

主要語言
Vim Script
星號
41.4k
分支
6.2k
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

vim/vim 的其他 Issue

查看 vim/vim 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。