This is a collection of bash, vim, and gdb scripts that help you easily write, compile, and debug lines of code without having to create new files and directories. For compiled code, it adds debuging symbols. Everything is integrated with neovim. This is NOT for testing code in compiled languages that have multiple non-standard libraries. This is just for testing simple short lines of code.
To install for the current user do
sudo make install USER=$USER
Otherwise you can change $USER to whatever user you want to use the scripts as
This command will open up neovim into the default template for you language
$ tst <language exention> <template>if no template is specified then the default template will be used
You can edit /usr/local/bin/runtst to modify how your program runs. This might be a good place to check if your program is not running correctly.
| Command | action |
|---|---|
|
runs the program in split terminal |
|
runs gdb in split terminal |
If you do not like these command mappings you can change them in the /usr/local/share/tst/mappings.vim file.
Templates are located in /usr/local/share/tst/templates/. Just look for your language and then and then the default file. This file will be the default template when you run tst. Otherwise you can look for or make a specific template in this directory.
You can specifiy a specific gdb configuration for you language by changing /usr/local/share/tst/gdb/<language>.gdb. Where language is the language you wish to add a configuration for. If you want to change the gdb configuration for all languages then edit the /usr/local/share/tst/gdb/global.gdb file.