Is there a way to show which specific line number of a "script.sh" file that is running in terminal after you've entered the "./script.sh" command? Ideally a feature I can turn off and on, that when turned on, shows which line number that terminal is currently processing/reading from, from the bash script.
I feel it would assist me in learning where I'm going wrong in specific bash lines without putting in a makeshift "identifier" i.e. "AAAA" in a bash command line to help me identify where in the script I've made an error.
Are there any addons that can achieve this, or other simple addons that are good to help beginners interpret/fault find scripts they've written (or.. trying to write)?