Ruby on Rails: Debugging

Ruby on Rails: Debugging

1h 6mIntermediate2022-06-17

Authors

David Morales

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

Introduction

  • Debugging and fixing errors on Ruby on Rails applications
  • What you should know
  • Why debugging

Backtraces

  • Reading backtraces
  • Unlocking full backtraces
  • Challenge - Backtraces
  • Solution - Backtraces

Debugging in Templates

  • Debugging variables
  • Debugging functions
  • Debugging objects

Binary Searching

  • Binary searching your code
  • Manual binary searching in tests
  • Automatic binary searching in tests
  • Binary searching in Git
  • Automatic binary searching in Git

Logging

  • Using logs
  • Logging - Practical case in a test
  • Logging - Practical case fixing N+1

Interactive Debugging

  • Introduction to the debug gem
  • Navigating the execution flow
  • Adding breakpoints
  • Integrating with Visual Studio Code
  • Using the web-console gem

Fixing Common Errors and Researching

  • Fixing the most common errors when using Ruby on Rails
  • Researching on the internet

Conclusion

  • Putting it all together
  • Next steps
40,000 Toman