Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
cocob is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A problem with UPP application scale . . . UPP exonerated, the rest of the story.
Next Topic: Project isn't portable from windows to linux
Goto Forum:
  


Current Time: Wed Jan 22 16:05:24 CET 2020

Total time taken to generate the page: 0.01542 seconds