Ph0enixKM / Amber

💎 Amber the programming language compiled to bash
https://amber-lang.com
GNU General Public License v3.0
3.51k stars 67 forks source link

Bash debug mode #219

Open Mte90 opened 1 week ago

Mte90 commented 1 week ago

In top of bash files is helpful to debug them, maybe an Amber parameter that add it automatically?

set -x

Ph0enixKM commented 1 week ago

set -x enables the Bash debug mode where all executed commands are printed to the terminal (standard error) after being expanded but before being executed. This could be turned on by someone with some flag in Amber Compiler.

That would be cool if we had a way to also debug Amber scripts with another flag. For example when there are bash syntax errors to show where these happened