Adam Thompson
Adam Thompson

Reputation: 3506

How to console.log in Watir?

How can I log to console in watir? Or break in the code. Like Javascripts console.log or debugger statements.

puts doesn't seem to work for me.

Upvotes: 0

Views: 691

Answers (1)

titusfortner
titusfortner

Reputation: 4194

You can get full debugging info output to console by setting $DEBUG = true

puts should still work, though, so I'm not sure what is going on in your system.

Upvotes: 2

Related Questions