V
V
Vladislav Valabuev2016-05-28 17:50:57
PHP
Vladislav Valabuev, 2016-05-28 17:50:57

How to remove path in var_dump?

Good time!
After installing wampserver 3, paths to the file began to be drawn in all var_dumps:

$a = array('Вася','Петя','Третий пункт');
var_dump($a);

What betrays me:
gSJXi2Zuzb0.jpg
I am far from being a guru of any configs, so I myself have not found where to dig.
Not very convenient, especially when you use smart and var_dump(1) draws something like:
D:\site\temp\f5a10fe3e72768fb0b7e9b59dad265fa4269fa44_0.file._header.tpl.php:101:int 1
How to remove this path?
PS: or at least style the line with the path (line break, smaller font and dimmer color).
Solution:
Added this line to xdebug settings:
xdebug.overload_var_dump=1
Got everything I wanted =)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Petr Marochkin, 2016-05-28
@vladislavvs

You need a php config to understand where this comes from. php.ini file content

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question