title: XDebug profiling not working in windows command line
body: <p>I'm struggling with xDebug profiling in WAMP. It works perfectly with browsers, I'm getting cachegrind.out files, but no luck if I try to execute a php script with command line. No cachegrind files are being generated.</p>
  
  <p>Here is my php.ini file:</p>
  
  <pre><code>[xdebug]
  xdebug.remote_enable = On
  xdebug.profiler_enable = 1
  xdebug.profiler_enable_trigger = 1
  xdebug.profiler_output_name = cachegrind.out.%t.%p
  xdebug.profiler_output_dir = "c:/wamp/tmp/profiler"
  </code></pre>
  
  <p>I have also tried with profiler_enable_trigger = 0.
  AlsoTried adding parameters:</p>
  
  <pre><code>php -d xdebug.profiler_enable=On script.php
  </code></pre>
  
  <p>and</p>
  
  <pre><code>php -dxdebug.profiler_enable=On script.php
  </code></pre>
  
  <p>Like described in <a href="https://stackoverflow.com/a/2288791/2814721">This SO question</a></p>
  
  <p>I even performed php --ini to know if on windows there was another php.ini file different from the one Apache used. It turns out that is the very same file:</p>
  
  <pre><code>Configuration File (php.ini) Path: C:\windows
  Loaded Configuration File:         C:\wamp\bin\php\php5.4.12\php.ini
  Scan for additional .ini files in: (none)
  Additional .ini files parsed:      (none)
  </code></pre>
  
  <p>Since it's the same php.ini, I'm running out of ideas. Could you help me?
  If you need any other output, don't hesitate.</p>