CSC/ECE 517 Fall 2012/ch2b 2w-1w65 am: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
(Created page with "==Introduction== ===Why debugging in SaaS/Rails is hard?=== ===Definitions=== ==RASP== ===Steps of RASP=== ==Understanding Error Messages in Rails== ===Application Trace=== =...")
 
Line 6: Line 6:


===Steps of RASP===
===Steps of RASP===
i) Read the error message. Really read it.
The error message is trying to tell you something so read it.
ii) Ask colleague
Ask your colleague an informed question in case you are doing pair programming. I am trying to do this and I expected it to do this but I got this other thing instead of foo.
iii) Search using StackOverflow or Google
Especially if its an error which is particular to a version of gems or OS
iv) Post on StackOverflow or class forum
Get minimal but complete information which reproduces the error message which you are experiencing and post it.


==Understanding Error Messages in Rails==
==Understanding Error Messages in Rails==

Revision as of 03:32, 17 November 2012

Introduction

Why debugging in SaaS/Rails is hard?

Definitions

RASP

Steps of RASP

i) Read the error message. Really read it. The error message is trying to tell you something so read it.

ii) Ask colleague Ask your colleague an informed question in case you are doing pair programming. I am trying to do this and I expected it to do this but I got this other thing instead of foo.

iii) Search using StackOverflow or Google Especially if its an error which is particular to a version of gems or OS

iv) Post on StackOverflow or class forum Get minimal but complete information which reproduces the error message which you are experiencing and post it.

Understanding Error Messages in Rails

Application Trace

Back Trace

Full Trace

Env Dump and Session Dump

Most Common Error Messages in Ruby

Interactive Debugger

What is an interactive debugger?

Conclusion

Further Reading

References