title: How to enable chrome crash dump collection during automated testing?
body: <p>I know how to enable chrome's crash reporting interactively:</p>
  
  <blockquote>
    <p>Menu > Settings > Show advanced settings > Tick "Automatically send usage statistics and crash reports to Google"</p>
  </blockquote>
  
  <p>However, I'm using chrome in an automated testing setup where we set a new <code>--user-data-dir</code> for each run (so there are no persisted settings, we just get the defaults).  Chrome is crashing occasionally (running our javascript/html application) and I would like to be able to report these crashes.</p>
  
  <p>I thought I could add <code>--enable-crash-reporter</code> (according to the <a href="http://peter.sh/experiments/chromium-command-line-switches/" rel="nofollow noreferrer">List of Chromium Command Line Switches</a>), but that doesn't seem to do anything.  (We already pass <code>--enable-logging</code> and a couple other flags on the command line.)</p>
  
  <p>I have a test that triggered an "Aw, Snap":
  <a href="https://i.stack.imgur.com/U3RR7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U3RR7.png" alt="enter image description here"></a></p>
  
  <p>But if I download the user-data-dir for that run and and point chrome at it, and then visit <code>chrome://crashes</code>, it says crash dumps are not enabled.
  (The <code>chrome_debug.log</code> does not say anything about the Aw-Snap either.)</p>
  
  <p><a href="https://i.stack.imgur.com/LXD0I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LXD0I.png" alt="enter image description here"></a></p>
  
  <p>We're running chrome under Xvfb on Debian.  We're driving chrome via the direct webdriver (from Protractor).</p>