Ruby on Rails: Debugging
1h 6mIntermediate2022-06-17
Authors

David Morales
Web Developer, Technical Instructor
Course details
Fixing bugs is one of the most in-demand (and frustrating) skills for developers. Just when your application seems to be running smoothly—a bug appears. Where did it come from? Is it your code? A bug in the framework? Where do you even start looking for the solution? In this course, David Morales takes a hands-on approach to guide you through techniques and tools you can use to fix bugs with ease. Bugs may be unavoidable, but learning David’s bug detection and troubleshooting techniques can give you confidence and skills that are in demand today for any Ruby on Rails developer.
Skills covered
Ruby on RailsBack-End Web DevelopmentFull-Stack Web DevelopmentWeb DevelopmentOpen SourceDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Debugging and fixing errors on Ruby on Rails applications
- 02 - What you should know
- 03 - Why debugging
1. Backtraces
- 04 - Reading backtraces
- 05 - Unlocking full backtraces
- 06 - Challenge - Backtraces
- 07 - Solution - Backtraces
2. Debugging in Templates
- 08 - Debugging variables
- 09 - Debugging functions
- 10 - Debugging objects
3. Binary Searching
- 11 - Binary searching your code
- 12 - Manual binary searching in tests
- 13 - Automatic binary searching in tests
- 14 - Binary searching in Git
- 15 - Automatic binary searching in Git
4. Logging
- 16 - Using logs
- 17 - Logging - Practical case in a test
- 18 - Logging - Practical case fixing N+1
5. Interactive Debugging
- 19 - Introduction to the debug gem
- 20 - Navigating the execution flow
- 21 - Adding breakpoints
- 22 - Integrating with Visual Studio Code
- 23 - Using the web-console gem
6. Fixing Common Errors and Researching
- 24 - Fixing the most common errors when using Ruby on Rails
- 25 - Researching on the internet
Conclusion
- 26 - Putting it all together
- 27 - Next steps
Related courses
- Installing and Running Ruby on Rails 5: Windows
- Installing and Running Ruby on Rails 5: Mac
- Ruby on Rails: Get More From ActiveRecord
- Ruby on Rails Controllers and Views
- Ruby on Rails Models and Associations
- Ruby on Rails 7: First Look
- Hotwire: Reactive Ruby on Rails Applications
- Ruby on Rails 6: Controllers and Views
Related learn paths
- Build Your Ruby on Rails Skills
- Getting Started with R for Data Science
- Getting Started with Continuous Integration / Continuous Delivery (CI/CD)
- Getting Started with DevOps
- Prepare for the CompTIA PenTest+ (PT0-002) Certification Exam
- Become a Programmer: Foundations
- Getting Started with C++
- Prepare for the CompTIA PenTest+ (PT0-001) Exam