Title: Php 7 and xDebug configuration
Tags: php;xdebug
Question: I have just migrated to php7 and i installed xdebug.
I noticed that the xdebug now displays the File and line number when we var_dump something.
Example:
<?php
var_dump(1);
var_dump('a');
var_dump([1,2,3,'a']);
would displays as:
/path/to/project/index.php:3:int 1
/path/to/project/index.php:4:string 'a' (length=1)
/path/to/project/index.php:5:
array (size=4)
0 =&gt; int 1
1 =&gt; int 2
2 =&gt; int 3
3 =&gt; string 'a' (length=1)
this is quite nice and very helpful, but can we make the file info and result on separate line to make it easier to read?
/path/to/project/index.php:3:
/path/to/project/index.php:4:
string 'a' (length=1)
/path/to/project/index.php:5:
array (size=4)
0 =&gt; int 1
1 =&gt; int 2
2 =&gt; int 3
3 =&gt; string 'a' (length=1)



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2016:00:02/12/16', 'FavoriteCount': 0.0, 'PostTypeId': 1, 'Tags': '<php><xdebug>', 'Title': 'Php 7 and xDebug configuration', 'ViewCount': 118, 'id': 35358230, 'user_AboutMe': None, 'user_AccountId': 3206632.0, 'user_DisplayName': 'user2707590', 'user_Reputation': 976.0, 'user_Views': 98.0, 'user_id': 2707590.0}}