Tuesday, April 21, 2020, 10:41 PM
Posted by Administrator
Q: How do you debug PHP scripts?Posted by Administrator
I am aware of basic debugging such as using the Error Reporting. The breakpoint debugging in PHPEclipse is also quite useful.
What is the best (in terms of fast and easy) way to debug in phpStorm or any other IDE?
A: Try Eclipse PDT to setup an Eclipse environment that has debugging features like you mentioned. The ability to step into the code is a much better way to debug then the old method of var_dump and print at various points to see where your flow goes wrong. When all else fails though and all I have is SSH and vim I still var_dump()/die() to find where the code goes south.
add comment
( 127 views )
| permalink
| ( 3 / 599 )