Answer the question
In order to leave comments, you need to log in
How to properly debug a php project?
Good afternoon, please tell me how to properly debug a project, a project on opencart - the problem is that I can never reach a breakpoint, for example, there is a certain function, I put a breakpoint there, presumably there is a jamb in it, but my debugger opens with index php - from the very beginning and not from this point what am I doing wrong?
Answer the question
In order to leave comments, you need to log in
you have break at first line or break when script is outside the project in your settings, something like these flags are phpstorm in the settings
, you need to remove these flags and make settings if necessary, here's an example I even made a video like
https://www.youtube. com/watch?v=yiQbJG_dSIc
Use a bunch of echo and var_dump .
echo '<pre>';
var_dump($variable);
exit;
You insert this into the place of interest and see what the variable contains. And so on until you find something wrong and the reason for this wrong.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question