Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.12 KB

File metadata and controls

28 lines (18 loc) · 1.12 KB

How to debug with PHPStorm

Let's get practical.

First listen for incoming debugging sessions.

Listen

Debug a single method

Just double click the methods name so it is fully selected. Then make a right click and select your external tool to run a single file or method.

The currently opened file will be passed as well as the method you've selected.

Debug or run a single method

Debug a single file

Simply open the file, make a right click and select your external tool to run a single file or method. The currently opened file will be passed via PHPStorm variable to the run command.

Debug or run a single file

Debug all files from a directory

Simply open the file navigator and right click on the directory you want. The select your external tool to run a single file or method. The directory will be passed via --file= and all tests within this directory will be executed.

Debug or run a directory

Debug all files/tests

Click right anywhere in your code or open the "Tools" menu from the main menu and select your external tool to run all files/tests.