Crazy thought today.
Is there any way to grab the line number that code has been executed on?
Logger.info "I was run on line #{get_line_number}"
You can use __LINE__
variable. See this https://stackoverflow.com/a/2496240/100466 answer also.
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