Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix missing note about debug.dump_destination#5310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wouterj merged 1 commit intosymfony:2.6fromnicolas-grekas:var-dumper-dest
Jul 29, 2015
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletioncomponents/var_dumper/introduction.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -104,13 +104,19 @@ original value. You can configure the limits in terms of:
* maximum number of items to dump,
* maximum string length before truncation.

Since dumping into the toolbar is not always possible - e.g. when working on a
JSON API - you can have an alternate output destination for dumps. This is
configurable with the ``debug.dump_destination`` option, that you can typically
set to ``php://stderr``.

.. configuration-block::

.. code-block:: yaml

debug:
max_items: 250
max_string_length: -1
dump_destination: ~

.. code-block:: xml

Expand All@@ -119,9 +125,17 @@ original value. You can configure the limits in terms of:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/debug http://symfony.com/schema/dic/debug/debug-1.0.xsd">

<config max-items="250" max-string-length="-1" />
<config max-items="250" max-string-length="-1"dump-destination="null"/>
</container>

.. code-block:: php

$container->loadFromExtension('debug', array(
'max_items' => 250,
'max_string_length' => -1,
'dump_destination' => null,
));

Dump Examples and Output
------------------------

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp