Place the caret at the request and press Alt+Enter or click in the editor gutter. Open an existing HTTP request file, or create a new one: in the File menu, point to New, and then click HTTP Request.Ĭompose an HTTP request for the query that you need to debug. Using the built-in HTTP Client, you can compose, execute, and debug HTTP requests directly from the PhpStorm code editor. Line breakpoints can be set only on executable lines, but not on comments, declarations, or empty lines.Ĭlick the gutter area at a line where you want to toggle a breakpoint.ĭebug the request via the HTTP client in the code editor Place the caret at the desired line of the source code.īreakpoints can be set in the PHP context inside php, html, and files of other types. Your breakpoints don't affect your source files directly, but the breakpoints and their settings are saved with your PhpStorm project, so you can reuse them across debugging sessions. Breakpoints can be set at any time during the debugging process. However, PhpStorm can use breakpoints as triggers for a variety of different actions. Typically, the purpose behind setting a breakpoint is to suspend program execution to allow you to examine program data. Click Open in Editor.īreakpoints are source code markers used to trigger actions during a debugging session. In the CLI Interpreters dialog that opens, the Configuration file read-only field shows the path to the active php.ini file. On the PHP page that opens, click next to the CLI Interpreter field. In the Settings dialog ( Control+Alt+S), click PHP. Open the active php.ini file in the editor: To avoid this problem, you need to update the corresponding sections in the php.ini file as described in Configure Xdebug and Configure Zend Debugger. These tools cannot be used simultaneously because they block each other. PhpStorm supports debugging with two most popular tools: Xdebug and Zend Debugger. Based on the configuration settings, PhpStorm composes the request to run.īefore you start debugging, make sure that you have a debugging engine installed and configured properly. Use the PHP HTTP Request run configuration. To debug PHP HTTP requests in PhpStorm, you can use the following methods:Ĭompose and debug the request via the HTTP client in the code editor, which is the recommended approach. This is helpful when you are actually interested in a specific page that is accessed in a number of steps, but for this or that reason you cannot specify this page as the start page for debugging, for example, because you need to "come" to this page with certain data. Besides debugging the entire application, you can debug separate HTTP Requests.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |