ubaldot / experiments

Guess what?
1 stars 0 forks source link

Test report Debian GNU/Linux 12 bookworm (x86-64) #2

Closed tooold2rock-n-roll closed 1 month ago

tooold2rock-n-roll commented 4 months ago

When I sourced the new script, it gave a warning about configuration I already had in my vimrc:

Error detected while processing /experiments/termdebug9.vim:
line  146:
E174: Command already exists: add ! to replace it: Termdebug StartDebug(<bang>0, <f-args>)

This is a screenshot after invoking :Termdebug Screenshot from 2024-05-16 08-52-20

And this is a screenshot of the example program after running: Screenshot from 2024-05-16 09-03-35

And this is a screenshot of the example code running: Screenshot from 2024-05-16 09-21-33

So it seams to be running just fine!

ubaldot commented 4 months 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...

ubaldot commented 2 months ago

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!

tooold2rock-n-roll commented 1 month ago

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??

ubaldot commented 1 month ago

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!

tooold2rock-n-roll commented 1 month ago

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.

ubaldot commented 1 month ago

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!

tooold2rock-n-roll commented 1 month ago

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/