Hi,
I'm trying to debug and I usually check the log file but there is only the query, not the result. Is it possible to check the result sent by the DB? (I'm working with Radrails)
| SitePoint Sponsor |

Hi,
I'm trying to debug and I usually check the log file but there is only the query, not the result. Is it possible to check the result sent by the DB? (I'm working with Radrails)




1. Put a breakpoint after the query in your code
2. Start script/breakpointer
3. Open your browser and go to the corresponding page
4. Use the irb session in the console window to check the result

Thanks, Webrick seems to freeze but I probably forgot something



Sorry to hijack this thread for a second but does anyone know a good tutorial for breakpointing. I've known about it for quite awhile but I've never tried it.




Bookmarks