Lldb : Setting conditional breakpoint with string equality as condition : <p>I would like to set a conditional breakpoint with lldb. This is usually done using <code>-c</code> option :</p>

<pre><code>breakpoint set -f myFile.cpp -l 123 -c 'a==3'
</code></pre>

<p>However, in my case I want to test if a <code>std::string</code> object is equal to a certain string value but doing this</p>

<pre><code>breakpoint set -f myFile.cpp -l 123 -c 'a=="hello"'
</code></pre>

<p>does not work… Lldb does not complain (while gdb would return an error) but it ignores the condition string upon reaching the breakpoint and breaks too early…</p>

<p>This question is similar to <a href="https://stackoverflow.com/questions/4183871/how-do-i-set-a-conditional-breakpoint-in-gdb-when-char-x-points-to-a-string-wh">this one</a> but with lldb instead of gdb. The solution presented there</p>

<pre><code>breakpoint set -f myFile.cpp -l 123 if strcmp(a, "hello")==0
</code></pre>

<p>does not seem to be valid with lldb</p>

<p>Lldb version used : 3.4</p>
