Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying PhpStorm Cookbook
  • Table Of Contents Toc
PhpStorm Cookbook

PhpStorm Cookbook

By : Chaudhary
1 (2)
close
close
PhpStorm Cookbook

PhpStorm Cookbook

1 (2)
By: Chaudhary

Overview of this book

If you are a competent PHP developer who knows the basics of PHPStorm and intends to gain better knowledge of PHPStorm by learning and implementing pro-level practices, techniques, and solutions, then this book is for you. It is assumed that you already have a working installation of the software setup.
Table of Contents (11 chapters)
close
close
10
Index

Running to a line of code selected


If you want no breakpoints in your code, but you still want the debugger to break at some point in your code, you are at the correct recipe and reading the correct text. This is also true when the breakpoint you set is already executed or stepped over, but you still suspect another line to be buggy.

How to do it...

  1. To tell PhpStorm to ask the debugger to break at some arbitrary point of your choice, you should exercise the Run to Caret option. As a prerequisite, you have to place the cursor at some line of code in your program. Having done that, you have to now go to Run | Run to Cursor, and PhpStorm will obediently (and politely) ask Xdebug to pause at the location where your cursor has been placed. This is just the same behavior it would have exhibited in the case of a regular breakpoint.

  2. There are three cases to be covered:

    • One is when you have just started debugging your code; the execution will pause on the line you have specified.

    • Another is when you specified...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
PhpStorm Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon