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 件 担当者 0 名 GitHub で見る

メンテナーはふだん 13 日以内に返信

まだ誰も着手していません。

評価

難易度
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

vim/vim のほかの issue

vim/vim の issue をすべて見る

似ている issue

DevTools の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。