File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,19 @@ original value. You can configure the limits in terms of:
104104* maximum number of items to dump,
105105* maximum string length before truncation.
106106
107+ Since dumping into the toolbar is not always possible - e.g. when working on a
108+ JSON API - you can have an alternate output destination for dumps. This is
109+ configurable with the ``debug.dump_destination `` option, that you can typically
110+ set to ``php://stderr ``.
111+ 
107112.. configuration-block ::
108113
109114    .. code-block :: yaml 
110115
111116        debug : 
112117           max_items : 250  
113118           max_string_length : -1  
119+            dump_destination : ~  
114120
115121     .. code-block :: xml 
116122
@@ -119,9 +125,17 @@ original value. You can configure the limits in terms of:
119125            xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"  
120126            xsi : schemaLocation =" http://symfony.com/schema/dic/debug http://symfony.com/schema/dic/debug/debug-1.0.xsd"  > 
121127
122-             <config  max-items =" 250"   max-string-length =" -1"   /> 
128+             <config  max-items =" 250"   max-string-length =" -1"   dump-destination = " null "   /> 
123129        </container > 
124130
131+      .. code-block :: php 
132+ 
133+         $container->loadFromExtension('debug', array( 
134+            'max_items' => 250, 
135+            'max_string_length' => -1, 
136+            'dump_destination' => null, 
137+         )); 
138+ 
125139 Dump Examples and Output
126140------------------------ 
127141
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments