Closed tooold2rock-n-roll closed 1 month ago
OK! Regarding the first issue I think it is due to you already have loaded the legacy vimscript written temdebug. But super that it is working on Debian! Many thanks for the support!
I am actually finishing to vim9-ing the source code plus doing some additional cosmetic adjustments here and there in the other branch. For example, I noticed that if a user has a crowded statusline, the interface will look like a Xmas tree when running :Termdebug...
Hi there! The Termdebug plugin has finally ported to Vim9 and it is now in the official distribution. :) A number of improvements are also undergoing. On top of that, I also extended termdebug with a plugin for embedded systems: https://github.com/ubaldot/vim-microdebugger It is still in early stages and it does not work super well with Windows, but that is the way it is.
At this point I think that I will shutoff this repo. Thanks for helping out with your tests and feel free to test the Vim9 version of termdebug included in the Vim distribution!
Very very very cool! I will update vim from source and check it out.
One thing I don't understand, why your version (the one I tested) has more division on screen with more useful information??
I researched this and tried alternative configurations for termdebug and even installed one from Debian's package manager to be sure I was using the latest one, but I can't seam to find the reason.....
Will it be like this in the latest Vim??
One thing I don't understand, why your version (the one I tested) has more division on screen with more useful information??
It should be the same. You should use the g:termdebug_config
dictionary to tell Termdebug what to show. Take a look at :h termdebug_config
. ;-) Let me know!
I see..... hum, I completely misunderstood that section when reading the first time......
What values did you use to create that exact result? I looked at the plugin and found only the points where it reads form the list, the test *.vim files use some but nothing that I recognize from the help.
Here is an example
packadd! termdebug
g:termdebug_config = {}
g:termdebug_config['variables_window'] = true
g:termdebug_config['variables_window_height'] = 15
g:termdebug_config['disasm_window'] = true
g:termdebug_config['disasm_window_height'] = 15
You can add them to your .vimrc
and play with the heights of the various windows. There is also a g:termdebug_config['wide']
parameter that you can play around.
If your .vimrc
is written in legacy language, add a let
in front of the lines starting with g:
. At the moment the layout is kinda fixed, but we are working on a PR so you can shuffle the windows freely on your screen. In the future we plan to give the opportunity of placing this info into popup menus.
Let me know if you need more help!
Ok, it's working now. The thing is, you have to choose if you are going to use the new _termdebugconfig or the old format.
I kept _g:termdebugwide = 1 and it was messing up the result.
Thanks for your assistance o/
When I sourced the new script, it gave a warning about configuration I already had in my vimrc:
This is a screenshot after invoking :Termdebug
And this is a screenshot of the example program after running:
And this is a screenshot of the example code running:
So it seams to be running just fine!