KDevelop 4.2.3: debugging session is interrupted

Roman Suvorov windj007 at gmail.com
Tue Mar 27 18:39:10 UTC 2012


Hi

Thank you for the answer!

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.

Roman

2012/3/27 Niko Sams <niko.sams at gmail.com>

> Hi,
>
> 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).
>
> 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)
>
> cheers,
> Niko
> Am 27.03.2012 14:08 schrieb "Roman Suvorov" <windj007 at gmail.com>:
>
>>  Hello!
>>
>> Thank you for good IDE! It's really one of the best for CMake+Boost+C++!
>>
>> I'm running Debian Wheezy + KDE 4.6.5 + KDevelopment Platform 1.2.3 +
>> KDevelop 4.2.3.
>>
>> The problem is that debugging session suddenly (and silently!) terminates
>> when I try to watch value of std::string-variable.
>> The sample program reads text from file that is encoded in cp1251.
>>
>> I understand that in this case KDevelop is unable to show me
>> human-readable value because it's configured to use UTF-8.
>> I guess it should not crash anyway ...
>>
>> Can you give me any advice on how to deal with that situation?
>>
>> Sample code:
>> #include <iostream>
>> #include <fstream>
>>
>> const int buf_size = 1024;
>> char buf[buf_size];
>>
>> int main(int argc, char **argv) {
>>     std::ifstream infile("/compiled/share/1.txt");
>>     infile.get(buf, buf_size);
>>
>>     std::string text(buf);
>>     std::cout << text << std::endl; // << I'm trying to watch value of
>> text at this moment
>>     return 0;
>> }
>>
>> _______________________________________________
>> kdevelop mailing list
>> kdevelop at kdevelop.org
>> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
>>
>>
> _______________________________________________
> kdevelop mailing list
> kdevelop at kdevelop.org
> https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20120327/c163a6ec/attachment.html>


More information about the KDevelop mailing list