Skip to content

Commit

Permalink
merged branch Marmelatze/var_dump (PR #5291)
Browse files Browse the repository at this point in the history
Commits
-------

9c20634 fixes pre for var_dump with xdebug

Discussion
----------

Displaying var_dump with xdebug in exceptions

When debugging code I often use `var_dump` to quickly look into variables. Since 2.1 alle output generated by `var_dump` is displayed in one line. http://screencast.com/t/11LuIlIdHsvP
It seems to be no problem for small objects, but it becomes a real pain when displaying huge arrays or objects.

This is caused by the changed word-wrapping for the pre tag introduced in #3827

With fix: http://screencast.com/t/GdA3dkpWxU

---------------------------------------------------------------------------

by dlsniper at 2012-08-17T17:22:38Z

:+1:
  • Loading branch information
fabpot committed Aug 18, 2012
2 parents bfd9991 + 298df3c commit 4f0d296
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Resources/public/css/exception_layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,8 @@ pre {
white-space: normal;
font-family: Arial, Helvetica, sans-serif;
}

pre.xdebug-var-dump{
white-space: pre;
font-family: monospace;
}

0 comments on commit 4f0d296

Please sign in to comment.