title: How can I get XDebug to run with PHPUnit on the CLI?
body: <p>I've tried running the following CLI command:</p>
  
  <pre><code>phpunit -d xdebug.profiler_enable=on XYZTestCase.php
  </code></pre>
  
  <p>but it just runs as normal.  Can anyone point me in the right direction??  Thx!</p>
  
  <p>Here's the XDebug settings: </p>
  
  <pre><code>xdebug
  
  xdebug support =&gt; enabled
  Version =&gt; 2.1.2
  
  Supported protocols =&gt; Revision
  DBGp - Common DeBuGger Protocol =&gt; $Revision: 1.145 $
  
  Directive =&gt; Local Value =&gt; Master Value
  xdebug.auto_trace =&gt; Off =&gt; Off
  xdebug.collect_assignments =&gt; Off =&gt; Off
  xdebug.collect_includes =&gt; On =&gt; On
  xdebug.collect_params =&gt; 0 =&gt; 0
  xdebug.collect_return =&gt; Off =&gt; Off
  xdebug.collect_vars =&gt; Off =&gt; Off
  xdebug.default_enable =&gt; On =&gt; On
  xdebug.dump.COOKIE =&gt; no value =&gt; no value
  xdebug.dump.ENV =&gt; no value =&gt; no value
  xdebug.dump.FILES =&gt; no value =&gt; no value
  xdebug.dump.GET =&gt; no value =&gt; no value
  xdebug.dump.POST =&gt; no value =&gt; no value
  xdebug.dump.REQUEST =&gt; no value =&gt; no value
  xdebug.dump.SERVER =&gt; no value =&gt; no value
  xdebug.dump.SESSION =&gt; no value =&gt; no value
  xdebug.dump_globals =&gt; On =&gt; On
  xdebug.dump_once =&gt; On =&gt; On
  xdebug.dump_undefined =&gt; Off =&gt; Off
  xdebug.extended_info =&gt; On =&gt; On
  xdebug.file_link_format =&gt; no value =&gt; no value
  xdebug.idekey =&gt; Nam =&gt; no value
  xdebug.manual_url =&gt; http://www.php.net =&gt; http://www.php.net
  xdebug.max_nesting_level =&gt; 100 =&gt; 100
  xdebug.overload_var_dump =&gt; On =&gt; On
  xdebug.profiler_aggregate =&gt; Off =&gt; Off
  xdebug.profiler_append =&gt; Off =&gt; Off
  xdebug.profiler_enable =&gt; Off =&gt; Off
  xdebug.profiler_enable_trigger =&gt; Off =&gt; Off
  xdebug.profiler_output_dir =&gt; c:/wamp/tmp =&gt; c:/wamp/tmp
  xdebug.profiler_output_name =&gt; cachegrind.out.%t.%p =&gt; cachegrind.out.%t.%p
  xdebug.remote_autostart =&gt; On =&gt; On
  xdebug.remote_connect_back =&gt; Off =&gt; Off
  xdebug.remote_cookie_expire_time =&gt; 3600 =&gt; 3600
  xdebug.remote_enable =&gt; On =&gt; On
  xdebug.remote_handler =&gt; dbgp =&gt; dbgp
  xdebug.remote_host =&gt; localhost =&gt; localhost
  xdebug.remote_log =&gt; no value =&gt; no value
  xdebug.remote_mode =&gt; req =&gt; req
  xdebug.remote_port =&gt; 9000 =&gt; 9000
  xdebug.scream =&gt; Off =&gt; Off
  xdebug.show_exception_trace =&gt; Off =&gt; Off
  xdebug.show_local_vars =&gt; Off =&gt; Off
  xdebug.show_mem_delta =&gt; Off =&gt; Off
  xdebug.trace_format =&gt; 0 =&gt; 0
  xdebug.trace_options =&gt; 0 =&gt; 0
  xdebug.trace_output_dir =&gt; \ =&gt; \
  xdebug.trace_output_name =&gt; trace.%c =&gt; trace.%c
  xdebug.var_display_max_children =&gt; 128 =&gt; 128
  xdebug.var_display_max_data =&gt; 512 =&gt; 512
  xdebug.var_display_max_depth =&gt; 3 =&gt; 3
  </code></pre>