See Debug with a PHP web page debug configuration for details. To start debugging an entire application, create debug configuration of the type PHP Web Page, and launch debugging by clicking. Initiate an Xdebug debugging session to collect profiling data The bookmarks for listed debugging-related actions are generated.ĭrag the generated links to the bookmark toolbar in your browser. Open the Xdebug & Zend Debugger bookmarklets generator page, check the debugging engine settings and click Generate. In Chrome, choose Bookmarks | Show bookmarks bar. In Firefox, choose View | Toolbar | Bookmarks Toolbar. They provide control over the debugger cookie, through them you will activate and deactivate the debugger.Įnable the Bookmarks toolbar in your browser by doing one of the following depending on the browser type: These bookmarklets will appear on the toolbar of your browser. Generate the bookmarklets to toggle the debugger through. To specify the XDEBUG_PROFILE cookie or a GET/POST parameter, do one of the following: Xdebug.profiler_output_name = cachegrind.out.%pĬonfigure toggling the profiler from the browser To permanently enable the profiler, set the xdebug.mode (for Xdebug 3) or xdebug.profiler_enable (for Xdebug 2) setting to profile: Click Open in Editor.Įnable the Xdebug profiler mode by one of the following ways: 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: Set up profiling with Xdebug Set up Xdebug Normally, these are a PHP engine, a web server, and the Xdebug tool. PhpStorm provides visual representation of the profiling snapshots generated by Xdebug to help you examine how your PHP application uses execution time and memory.īefore profiling with Xdebug, download, install and configure the components of the PHP development environment. Besides interactive debugging, PhpStorm's integration with Xdebug also supports profiling.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |