title: Enable remote debugging on Chrome by default on mac?
body: <p>I am working on getting the VS Code debugger to attach to Chrome as part of my regular workflow.</p>
  
  <p>I keep Chrome running all the time, and the highly-regarded VS Code Live Server extension opens my project in a new tab, which I like. I would like to be able to attach the VS Code debugger to this instance, but it looks like I have to start Chrome from the command line with</p>
  
  <pre><code>sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  </code></pre>
  
  <p>Several questions:</p>
  
  <ol>
  <li>Is there a way to modify Chrome's configuration file so that it always starts with that flag set?</li>
  <li>Is that a stupid thing to do?</li>
  <li>Do I really need the <code>sudo</code> in the line above? Some sources do not have it.</li>
  <li>Alternatively, is there a way to create a desktop/toolbar shortcut to chrome that will start it will remote debugging enabled?</li>
  </ol>
  
  <p>Thanks!</p>
  
  <p>PS I see the related <a href="https://stackoverflow.com/questions/51563287/how-to-make-chrome-always-launch-with-remote-debugging-port-flag">SO question for Windows</a>.</p>