How can I use var_dump + output buffering without memory errors?

前端 未结 5 1816
迷失自我
迷失自我 2021-01-01 09:00

I\'m using a debugging aid in an application that uses var_dump() with output buffering to capture variables and display them. However, I\'m running into an iss

5条回答
  •  隐瞒了意图╮
    2021-01-01 09:15

    When you insall xdebug you can limit how deep var_dump follows objects. In some software products you might encounter a kind of recursion, which bloats the output of var_dump. Other than that, you could raise the memory limit.

    See http://www.xdebug.org/docs/display

提交回复
热议问题