Frage

Does Ruby have the ability to print out each line of code as it executes during runtime? I'm looking for something similar to Bash's set -x functionality.

Preferably the solution would be something using only the Ruby standard-lib. This would be used in a continuous-integration system so I don't have much control over installed gems.

Thank you in advance

War es hilfreich?

Lösung

As pointed out by Arup, this is a dupe.

Ruby's Tracer class fits my needs.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top