title: How to debug your application with root permissions on VSCODE?
body: <p>I'm trying to debug dotnet core web app, however it's not possible to do it without having root permissions.</p>
  
  <pre><code>An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.Private.CoreLib.dll: 'Permission denied'
  </code></pre>
  
  <p>The naive approach would be launching VSCode with root permissions, which is generally not a recommended (and I would like to avoid it).</p>
  
  <p>Is there any way to configure <code>launch.json</code> to execute the debugger with root permissions?</p>
  
  <p>I've tried already creating a pre-launch task executing <code>sudo</code> or <code>sudo su</code> commands.
  I tried running the application and trying to attach to the process (also got declined because of insufficient permissions)</p>