Book Image

PhpStorm Cookbook

By : Mukund Chaudhary
Book Image

PhpStorm Cookbook

By: Mukund Chaudhary

Overview of this book

Table of Contents (16 chapters)
PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Stepping through your code


Life teaches new lessons at every moment. For all of you who found the phrase stepping through code new, this is a process wherein you do an analysis of the values of variables, the control structures, and the method call hierarchy. The process includes three types of stepping:

  • Step Into

  • Step Over

  • Step Out

Getting ready

Do you need to step through code at all? Yes, of course. When? When you have to find out what the eyesore in the code is. You have to step into the code when you need to know the next line in the entire program. You have to step over code when you need to know the next executed line in the entire program. You have to step out of code when you need to know the next line after the method selected.

How to do it...

In order to step through code, you just need to be in a debugging session. The rest is just a click away or just a matter of a keyboard shortcut. Perform the following steps:

  1. Begin with stepping over the code. When your debug session is active...