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

    <tr>
        <th>Summary</th>
        <td>
            lldb-dap is emitting "0" as the sequence number for all messages
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lldb-dap
      </td>
    </tr>

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

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

<pre>
    lldb-dap is emitting "0" as the sequence number for all the messages it sends. That does not conform to the spec: https://microsoft.github.io/debug-adapter-protocol/specification#Base_Protocol_ProtocolMessage

> Sequence number of the message (also known as message ID). The `seq` for the first message sent by a client or debug adapter is 1, and for each subsequent message is 1 greater than the previous message sent by that actor.

We need to stop setting the sequence number in the helpers in JSONUtils and make that part of the code that sends the message. 
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykU01vpDgQ_TXmUmpkCuh0Hzgkm21pI-3uSJnRHEfGFOCJsYnL9Cj_fmToTjIft5GQMJTrVb1XrxSzGRxRI-o7Ud9naomjD83DPZ2toWGkQFnru5fG2q7ddWoGw0CTidG4AQSiFIigGOJIwPS8kNMEbplaCtD7AMraNTYRsxqIwURgch3n8HFUETpPDM5H0N71PkwQ_YY1kxblLYwxzizKW4EngafJ6ODZ9zEfTByXNjde4Kmjdhl2qlNzpLCbg49eeyvwlEBMb7SKxjuB5Z1i-vLhEn89_Lu1JuRtesq_4fEnHr5_TwEEHpRlD0_Of3OJ-zXwz73AY-JFIPaS6Vns5SpCyu5N4Ph6lclFaF9AgbYmnX2AlQZcaCSdC4F_gXLdikFKj8BLu4n8hpTuwRBIpaQ4KrdWmwOdjV_4l4Ixia509CHfCH8mcERd0p2jn4Fpm-3vBmo28JHsTIHT58Pj__99isby2ueknmirMKsQr7pp313-roN_r2UOWdeU3bE8qoya4qaqsMKiKrKx0YdSkuxRYbe_KQ61LI71vpN6fygreVBVZhqUWMtKHrGsEIu8rpVCxH5_uNFtue9FJWlSxubWnqfchyEzzAs1RVkXssisasnyanzEq70FYlqD0KScXbsMLCppDUd-Q4kmWvqjhbguQ7YE2_zo8IuvtZ8EnlLJyyvZ-ivpKPC0smCBpwuRc4PfAwAA___tSEec">