Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » the debugger
Re: the debugger [message #18606 is a reply to message #17358] |
Sat, 11 October 2008 11:26 |
cocob
Messages: 156 Registered: January 2008
|
Experienced Member |
|
|
I have done some test with theIDE on windows with MSC9
Here my example source :
#include <vector>
int main(int argc, const char *argv[])
{
std::vector<int> vec;
std::vector<int>::iterator iter;
vec.push_back(1);
vec.push_back(4);
vec.push_back(3);
iter = vec.begin();
int a = *iter;
return 0;
}
I have tried to watch these expressions
1 - (vec._Mylast - vec._Myfirst)
2 - vec.size()
3 - vec[0]
4 - *iter
5 - *(vec._Myfirst+1)
and the results
1 - ff698284->??
2 - Unknown membre 'size'
3 - Invalid operand
4 - Only pointer can be dereferenced
5 - 4
So only the last expression works.
I know that 2, 3, 4 are difficult because we sould parse c++, detect specific STL type (vector) and replace the expression.
But why the first expression doesn't work ?
cocob
[Updated on: Sat, 11 October 2008 11:27] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 26 03:05:01 CEST 2024
Total time taken to generate the page: 0.95740 seconds
|