<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/82048>82048</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [lldb-dap] launchCommands failures always show an error "invalid process"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            ashgti
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ashgti
      </td>
    </tr>
</table>

<pre>
    When using the lldb-dap, if your debug configuration uses the `launchCommands` and the command fails instead of reporting an error from the command you will see a dialog saying "invalid process".

The error is coming from https://github.com/llvm/llvm-project/blob/main/lldb/tools/lldb-dap/lldb-dap.cpp#L1790 which is writing over the error reported on line https://github.com/llvm/llvm-project/blob/main/lldb/tools/lldb-dap/lldb-dap.cpp#L1783
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8UrGO2zAM_Rp5IS6QaSe2Bw_XO2TqWKCzZDG2CkUyRClB_r6wnN7hgC5dutgiiUe-9_AUs5090SiO3wSi4mVOViCK43ulclpCHPdepYN5jD8X8pDZ-hnSQuCc0S9GrQLfwF7gEXIEQzrPMAV_sXOOKtmwIYgLQJykU9lPy1u4XpU3LE4SlDdlOO09uCjrGKznRMpAuECkNcS0HVUeKMYQ4RLD9QvoETLcrXPARKDAWOXCDKweG0wgWn9TzhpYY5iIWSAehHwX8nX__ljoudnytnNDlRtLSiuL5lXgWeB5tmnJ-jCFq8Czc7c_v5c1hl80JYFn7YIWeL4q68vQbFUKwfGz3A37eB6mdRXYfK-7QcJ9sdOyUbhHWwSHG8Wicye3O0EGggdnPf1Pen1TmbExQzOoisa6k32NdY1DtYyt7KjupO5OJ607hdSbuhvquqVGt_VRVnZEia3E-oQoj9gfTm03kB4aktRp6nvRSroq6w4b3UOIc2WZM409yravnNLk-JlRT3cow2dM41gk6jyzaKWznPhzS7LJlXB_SDu-w9cIlrzlSAzK3dWDgZdw_0zaX7NT5ejGf_a-sN58Lqp-BwAA__8DbShk">