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

    <tr>
        <th>Summary</th>
        <td>
            Cannot change boolean variable with lldb-dap
        </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>
    To change the value of a boolean variable, lldb-dap rejects `true` and `false` and makes you use `0` and `1`. 

Using `false`: 
```
{"command":"setVariable","arguments":{"variablesReference":24,"name":"m_is_file","value":"false"},"type":"request","seq":27}
{"body":{"message":"'false' is not a valid integer string value"},"command":"setVariable","request_seq":27,"seq":0,"success":false,"type":"response"}
```

Use `1`:
```
{"command":"setVariable","arguments":{"variablesReference":24,"name":"m_is_file","value":"1"},"type":"request","seq":30}
{"body":{"type":"bool","value":"true","variablesReference":0},"command":"setVariable","request_seq":30,"seq":0,"success":true,"type":"response"}
```

I'm not sure if this is really an lldb-dap issue or `SBValue::SetValueFromCString` doing the wrong thing. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVEFv2zwM_TXyRWgg0bHdHHxIEwT4vuO69VrIMW1rk6VUlFPk3w9yHCcdOqzbLgOCJARF6vE96iki3VrEkmUPLNsmagid8-X_WzwajW2HHpPK1afys-P7TtkWeeiQH5UZkLuGK145Z1BZflReq8oggw03pq7uanXgHr_iPhBnuQh-QJYLrmwdw0YZmuNefUPiJzfwgTBmxc1JyXKx4ExsmVifv7-Qtu1tE5auLwdyMX3OYfHAAPau75WtGQBL1wyAMDzNaIHBhgEo3w492kDTqbHwMhN9wgY92j2es7A8F1nV49y1f9b03OibniNLc_4MFoAV23M6nA7XrMeXASnMtYQv011FLLiZJspxC7JHItVeOzEopqsKrolbF7iKgumaaxuwRc8p-MjgjO-C6CNETUCfbwG-RSymeNjvkSY-J0TvjE0HZ2de3tVw0hwvyxAr_3Wx5e8LnYpfCP2mTXx2P7l7fGnX1PtTib8TPRUfEP0M5M81_49B0Y8LTINHrhseOk1xqT0qY05c2avVaKJoST5uyePD08hIumbp-jHOYwbceddvHsfNj-5Su_gEopm9ejf-07Zd8KQu03qVrlSCpSxgJcUylWnSlXVeQFGhTFegsgpQyvQ-z0SGFSqVL_NElyBgKYXM5f0yk3JRVDmKdJVlq6JpRINsKbBX2iyMOfYL59tkxFxKCdmqSIyq0NBoxACXsSJH2TbxZay5q4aW2FIYTYGuXYIOBsuNspGpyaR_dGX-qkM3k5UM3pRdCAcaFdkx2LU6dEO12LuewS62nn7uDt5FD2ewG9ESg90E-FjC9wAAAP__0gbPrA">