Sometimes it is nice to do a println of a session variable in order to know what is happening, to aid in debugging logic errors. Is there a cleaner, more modern way of doing that? Like, do you guys use a logging library or anything? How do you debug your scenarios?
Hi John,
You could indeed use a logging library : Gatling uses ScalaLogging (which relies on SLF4J) and is available for use in your simulations.
But, to be honest, I still resort to a good old println when I’m developing/debugging simulations
Cheers,
Pierre
I enable logback INFO level and sprinkle println judiciously. Occasionally break in the debugger, when I’m extending the DSL.