title: Debug a release version of an OSX App via LLDB
body: <p>I am trying to debug of an OSX desktop application (Mac os catalina 10.15.3) via LLDB.</p>
  
  <pre><code>lldb path/to/Electron.app
  &gt;&gt;&gt; Current executable set to 'path/to/Electron.app' (x86_64).
  </code></pre>
  
  <p>After that I can successfully add breakpoints to the debugger, but when I try to run application with <code>run</code> or <code>process launch</code> it always gives me:</p>
  
  <p><code>error: process exited with status -1 (Error 1)</code></p>
  
  <p>Also another issue with attaching to the pid. It gives me an error and can not attach to the process.</p>
  
  <pre><code>lldb -p 41324
  &gt;&gt;&gt; error: attach failed: Error 1
  </code></pre>
  
  <p>Why I can't disassemble the program inside debugger ?</p>