DEV Community

Discussion on: Finding memory issues in PHP programs

Collapse
 
smichaelsen profile image
Sebastian Michaelsen

I'm using Xdebug on a daily basis - but only the debugger part. I tracked down a similar memory issue recently with memory_get_usage() and stepping through the execution with xdebug which is only slightly more convenient than logging the consumed memory.

Hint if you ever want to do this: Add memory_get_usage() as a watched expression in PhpStorm and you'll see the memory usage "live" at each inspected line.

I know the profiler exists, but I have to learn to use it. Thanks for the nudge.