Chapter 7. Debugging Using Sublime

This chapter will teach us how to use Sublime Text for debugging our code in different languages. The following topics will be covered in this chapter:

  • Introduction to debugging in Sublime Text
  • Debugging PHP with Xdebug
  • Debugging JavaScript with Web Inspector
  • Debugging C/C++ with GDB

Introduction to debugging in Sublime Text

We'll start with a famous quote by Steve McConnell:

"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free."

That is why we use debuggers to help us debug our code, find errors, and fix them. Sublime has some plugins that integrate some debugging features in them. We will cover debugging PHP using SublimeTextXdebug, debugging JavaScript using SublimeWebInspector, and debugging C/C++ using SublimeGDB.

 

"If debugging is the process of removing bugs, then programming must be the process of putting them in."

 
 --Edsger W. Dijkstra
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset