Answer the question
In order to leave comments, you need to log in
How to properly debug php code in PhpStorm?
The first question is how to set up code debugging (meaning a breakpoint followed by moving through the code and viewing the results and values directly in the code)?
The second question - is it possible to somehow display the result of code execution (like console.log in js) in real time to the ubuntu OS console? If it is not possible directly, is it possible to write the results of the execution to the .log file in real time?
The third question - if the second option is feasible, then do you know any tools for beautiful output (highlighting) and editing written in nodejs? It’s just that I’m already so used to the output of the node that I don’t want to look at something else. But if you know similar libraries in other languages, then I will consider them again.
Answer the question
In order to leave comments, you need to log in
I use php-netbeans , this ide communicates with the profiler https://pecl.php.net/package/Xdebug .
the state of variables is displayed right in the course of execution.
There should also be a similar bridge for phpshtorm.
have you tried reading the documentation?
https://www.jetbrains.com/phpstorm/help/configurin...
there are plenty of options. In the end the easiest one is monolog + tail -f
You know, I'm so used to log aggregators like sentry/logstash/graylog that I can't just watch logs through tail/less.
I honestly don’t remember how it is in the node, but sometimes I indulge in something like this
https://github.com/bramus/monolog-colored-line-for...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question