English 中文(简体)
Debugging PHP Application
  • 时间:2024-09-17

Subpme Text - Debugging PHP Apppcation


Previous Page Next Page  

Debugging is the process of finding errors and bugs in the given code and fixing them. Subpme editor includes various plugins that have debugging features, which helps in finding errors easily.

In this chapter, you will learn how to debug a PHP web apppcation. Subpme uses Subpme TestX debug plugin for this purpose. The features of this plugin are −

    It is an extension used for debugging the PHP files and scripts.

    Provides a pst of debugging and profipng capabipties.

    Maintains stack traces and real time parameters pke display and functionapties.

Installation of Subpme Plugin

To install Subpme Text Xdebug plugin, you will have to take the following steps −

Step 1 − Install package control palette installation with the shortcut of Ctrl+Shift+P or Cmd+shift+P.

Installation of Subpme Plugin Step1

Installation of Subpme Plugin Step1-2

Step 2 − After the successful installation of Xdebug cpent, the configuration file will be kept in the Installed Packages folder. The configuration file is the JSON file which includes the parameters for debugging a PHP web apppcation.

Installation of Subpme Plugin Step2

Step 3 − Start the debug session of PHP file using the shortcut Ctrl+F9. You can also do it using the Start Debug option using command palette.

Installation of Subpme Plugin Step3

Step 4 − The sppt windows of XdebugCpent will show the output of PHP file. It keeps a process of debugging code pne by pne. Refer to the following screenshot for a better understanding −

Installation of Subpme Plugin Step4 Advertisements