I've just began building my first Rakefile (Ruby version of makefile), and I'd like to debug my script easily using verbose mode (like makefile -V or bash -x) is there an option to do so on ruby ?
thanks
Show activity on this post. Library makefiles, which are generated by autotools (the ./configure you have to issue) often have a verbose option, so basically, using make VERBOSE=1 or make V=1 should give you the full commands. But this depends on how the makefile was generated.
The $VerbosePreference preference variable controls if Write-Verbose statements appear. By default, the value of $VerbosePreference is set to SilentlyContinue, which means the messages do not appear. Because this is a simple preference variable, all I need to do is to change it in my profile. Now all verbose messages will appear in the output.
We created a playbook file called check_uptime.yml, as shown. When executed, the uptime details are printed to the terminal as shown. This guide demonstrates how you can print the command’s output to standard out in Ansible. This was enlightening, and that you can now print the output of your command to std out.
One downside of this method is that you have to ensure that the shell that will be used is sh, which is the default one used by Make as they are POSIX, but could be changed with the SHELL make variable.
rake --trace
will probably give you everything you need
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With