<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">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">
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>_______________________________________________<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>