Вопрос

I'm debugging a php application via lynx (with -dump option) and I'm using a lot of debug variables. Unfortunatly, the output of var_dump is pretty messy, no matter if I dump it to the console or into a file. Is there any way to make it look better? I'm using bash.

Это было полезно?

Решение

I prefer print_r over var_dump. I think that is the nicest you can get with PHP only.

Другие советы

Install/activate xdebug. It makes your var_dump() output much prettier.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top