[vim/vim] Termdebug8 (PR #15027)

15 views
Skip to first unread message

errael

unread,
Jun 16, 2024, 4:34:04 PM (10 days ago) Jun 16
to vim/vim, Subscribed

Copy from last legacy version before vim9 port.
Rename legacy termdebug commands to Termdebug8.
With this one can more easily explore differences between legacy and vim9 termdebug and for emergency use.

Use like

gvim -c "set co=220" -c "packadd termdebug8" -c "Termdebug8 $cmd $cor

There's no expectation that this can run concurrently in same-instance with vim9 termdebug.
It uses the same configuration setup.

It's expected that this will fade as Termdebug becomes more robust.

Note: this is two commits. The first is the copy, the 2nd renames the commands.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/15027

Commit Summary

  • 3fdaacd Copy from last legacy version before vim9 port.
  • de94e26 Rename legacy termdebug commands to Termdebug8.

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/15027@github.com>

errael

unread,
Jun 16, 2024, 5:01:37 PM (10 days ago) Jun 16
to vim/vim, Push

@errael pushed 1 commit.

  • a95888f Rename legacy termdebug commands to Termdebug8.


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/15027/before/de94e26eb9924551f00195742f04fd6fe296fb4f/after/a95888f2d8c8b695bfeb4d6cf54f5341bb68510e@github.com>

Yinzuo Jiang

unread,
Jun 17, 2024, 12:27:16 PM (9 days ago) Jun 17
to vim/vim, Subscribed

Should we add some documentation to explain

  1. the difference between termdebug and termdebug8
  2. when we will deprecate temdebug8?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/15027/c2173841590@github.com>

Christian Brabandt

unread,
Jun 17, 2024, 12:34:22 PM (9 days ago) Jun 17
to vim/vim, Subscribed

That is the thing. What can you do with the legacy plugin, that is not possible with the current termplugin? I rather spend time to get the vim9script plugin fixed rather than having to include 2 versions of the same plugin


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/15027/c2173854442@github.com>

vim-dev ML

unread,
Jun 17, 2024, 12:45:51 PM (9 days ago) Jun 17
to vim/vim, vim-dev ML, Your activity

@errael perhaps, let it be~ if no further outstanding huge change/break, let's just turn to use vim9 version of termdebug now..
// this tmp switch operation was too late.. :sweat_smile:
// thank you anyway~

--
shane.xb.qian


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/15027/c2173877040@github.com>

errael

unread,
Jun 17, 2024, 2:17:21 PM (9 days ago) Jun 17
to vim/vim, vim-dev ML, Comment

Should we add some documentation to explain

1. the difference between termdebug and termdebug8

At this point, a short paragraph for Termdebug8 that references the Termdebug
docs would be in order. Something that basically says that termdebug is under
construction and that Termdebug8 will go away when things stabalize. If needed
at some point the docs associated with legacy script termdebug could be copied.

But since it looks like this won't be merged...

2. when we will deprecate temdebug8?

There's substantial refactoring, changes, and new features proposed for termdebug.
I haven't seen a plan or estimate. After things stabalize, I think it could be
deprecated; or even have the command Termdebug8 point the Termdebug.


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/pull/15027/c2174038518@github.com>

errael

unread,
Jun 17, 2024, 2:19:45 PM (9 days ago) Jun 17
to vim/vim, vim-dev ML, Comment

That is the thing. What can you do with the legacy plugin, that is not possible with the current termplugin?

There's substantial refactoring, changes, and new features proposed for termdebug.
The testing for termdebug seems to be weak; consider that it makes heavy use of
BufRead and a few other autloads, but it seems they are not tested.

I don't use termdebug frequently; I just got lucky this time fixing something
in the vim "C" code used by the vim9 port of termdebug. (remember CHECKME?)

When I go to use termdebug, I'm generally in the middle of something. Having to
stop what I'm doing and shift to debugging the debugger is less than desirable. I
don't know how many people use termdebug and how often or how comfortable they
might be with digging around for a working version and using that. termdebug
uses advanced vim features and I'm lightweight when it comes to them.

Anyway, even if this PR isn't merged, I have a changeset I can rebase and include
with my local version so I'll always have termdebug available when needed.

https://www.scientificamerican.com/article/einstein-s-parable-of-quantum-insanity/

I rather spend time to get the vim9script plugin fixed rather than having to include 2 versions of the same plugin

Are you saying, with "spend time", that including this PR is an equivelent effort
to fixing vim9 termdebug issues?


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/pull/15027/c2174054134@github.com>

errael

unread,
Jun 17, 2024, 2:24:20 PM (9 days ago) Jun 17
to vim/vim, vim-dev ML, Comment

Closed #15027.


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/pull/15027/issue_event/13189799632@github.com>

errael

unread,
Jun 17, 2024, 2:24:23 PM (9 days ago) Jun 17
to vim/vim, vim-dev ML, Comment

@errael perhaps, let it be~ if no further outstanding huge change/break,

There's substantial refactoring, changes, and new features proposed for termdebug.

let's just turn to use vim9 version of termdebug now..

I plan to use the vim9 version. But when I need a debugger, I need a debugger now.

I'll keep this changeset around for my own use.


Reply to this email directly, view it on GitHub.

You are receiving this because you commented.Message ID: <vim/vim/pull/15027/c2174083210@github.com>

Reply all
Reply to author
Forward
0 new messages