Hi<div><br></div><div>Thank you for the answer!</div><div><br></div><div>I tried to retrieve value of that variable using gdb console (provided by KDevelop's toolbar "GDB") and gdb did not crash. GDB showed me abracadabra but it did not crash. Debugging becomes interrupted when mouse hovers over the variable's name.</div>
<div><br></div><div>Roman<br><br><div class="gmail_quote">2012/3/27 Niko Sams <span dir="ltr"><<a href="mailto:niko.sams@gmail.com">niko.sams@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>Hi,</p>
<p>This is most probably because gdb crashes - nothing we can do about. And it's related to pretty printers (python scripts that try go get human-readable value from std::string).</p>
<p>Those issues should be fixed in newer gdb versions, and in KDevelop 4.3 we also show that gdb crashed (and not just silently stop debugging)</p>
<p>cheers,<br>
Niko</p>
<div class="gmail_quote">Am 27.03.2012 14:08 schrieb "Roman Suvorov" <<a href="mailto:windj007@gmail.com" target="_blank">windj007@gmail.com</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
Hello!<div><br></div><div>Thank you for good IDE! It's really one of the best for CMake+Boost+C++!</div><div><br></div><div>I'm running Debian Wheezy + KDE 4.6.5 + KDevelopment Platform 1.2.3 + KDevelop 4.2.3.</div>
<div><br></div><div>The problem is that debugging session suddenly (and silently!) terminates when I try to watch value of std::string-variable.</div><div>The sample program reads text from file that is encoded in cp1251.</div>
<div><br></div><div>I understand that in this case KDevelop is unable to show me human-readable value because it's configured to use UTF-8.</div><div>I guess it should not crash anyway ...</div><div><br></div><div>Can you give me any advice on how to deal with that situation?</div>
<div><br></div><div>Sample code:</div><div><div>#include <iostream></div><div>#include <fstream></div><div><br></div><div><div>const int buf_size = 1024;</div><div>char buf[buf_size];</div></div><div><br></div>
<div>int main(int argc, char **argv) { </div><div> std::ifstream infile("/compiled/share/1.txt");</div><div> infile.get(buf, buf_size);</div><div> </div><div> std::string text(buf);</div><div> std::cout << text << std::endl; // << I'm trying to watch value of text at this moment</div>
<div> return 0;</div><div>}</div></div>
<br></div></div>_______________________________________________<br>
kdevelop mailing list<br>
<a href="mailto:kdevelop@kdevelop.org" target="_blank">kdevelop@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop</a><br>
<br></blockquote></div>
<br>_______________________________________________<br>
kdevelop mailing list<br>
<a href="mailto:kdevelop@kdevelop.org">kdevelop@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop</a><br>
<br></blockquote></div><br></div>