code completion and debug problem with 'bitset'

General questions regarding the usage of CodeLite
haizi
CodeLite Curious
Posts: 1
Joined: Thu Mar 06, 2014 11:16 am
Genuine User: Yes
IDE Question: C++
Contact:

code completion and debug problem with 'bitset'

Post by haizi »

Hi all,

I am a new user of codelite. I have some problems with code completion and debug problem with the 'bitset' in STL.

1. code completion:
#include <bitset>
int main() {
std::bitset<16> ibit;
unsigned long x = ibit. //nothing pop out here
return 0;
}
Code completion works for other containers in STL well. It does not work for 'bitset' only.

2. debug
for the 'ibit' defined above, I cannot view the contents of it. In the debugger window, I add 'ibit' to watches. It says:
ibit GDB ERROR: "Returned value is not iterable".

ps: A strange problem with the breakpoints. For example, I have the following code.

line 1: int main() {
line 2: int a = 1;
line 3: int b = 2;
line 4: return 0;
line 5: }

I have the breakpoints at line 2, 3, 4. When debugging this code, it will go step by step with no problem. But if I set breakpoints at line 2, 3, 4, 5. Then it will run directly to line 5 with no stop at the other breakpoints, and in the debugger window, no variables are observed.


My system is Ubuntu 12.04.4. The codelite version is 5.4, and I installed it from the apt-repository as described here:
http://codelite.org/LiteEditor/Repositories.
I installed the precise version.

In the C-tag search included pathes, I have the following pathes:
/usr/include
/usr/include/c++/4.6
/usr/include/c++/4.6/backward
/usr/include/c++/4.6/x86_64-linux-gnu
/usr/include/x86_64-linux-gnu
/usr/lib/gcc/x86_64-linux-gnu/4.6/include
/usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed
/usr/local/include

Anyone have the same problems? Any suggestions are appreciated. Thanks in advance.
ps. It is an amazing IDE. I like it. :D

Haizi