User forums > Using Code::Blocks
Visualization of Arrays content in the watch list
asd34:
Dear All,
I have difficulties when I have to visualize the content of arrays during the program execution, especially when I'm doing it step by step. Generally, if you hoover the mouse over the specific array or any variable you should see the content of at the time of execution. But when I'm using it doesn't show anything at all, though I remember that for old releases of CB I was be able to see the content of the variable or array etc.. I believe that I've switched something on and off. Does any body can help be to remedy the situation?
CB vesion : 12.11
MinGW : 4.4.0
OS Win7 x64
Best Regards,
oBFusCATed:
Steps:
1. Select expression
2. Right click -> Add watch
3. Right click on the watch -> Properties
4. Enable 'is array' and set the count
5. Click ok
asd34:
Thanks,
BTW I have the dynamic arrays. What should I do if it says "A syntax error in expression, near `[1]@10'." ?
I wonder, how it handles the 1,2 or multidimensional arrays, is that Start and Count accounts for all dimensions in the array, isn't there a more automatic way, like editor detects itself the size of the array.
Regards,
oBFusCATed:
--- Quote from: asd34 on January 02, 2013, 08:39:41 am ---BTW I have the dynamic arrays. What should I do if it says "A syntax error in expression, near `[1]@10'." ?
--- End quote ---
What is the code and the expression you are using. Probably you have to wrap in brackets.
--- Quote from: asd34 on January 02, 2013, 08:39:41 am ---I wonder, how it handles the 1,2 or multidimensional arrays, is that Start and Count accounts for all dimensions in the array, isn't there a more automatic way, like editor detects itself the size of the array.
--- End quote ---
I doubt it is possible to detect the sizes, unfortunately.
Start and count are for single dimension only.
asd34:
--- Quote ---BTW I have the dynamic arrays. What should I do if it says "A syntax error in expression, near `[1]@10'." ?
What is the code and the expression you are using. Probably you have to wrap in brackets.
--- End quote ---
Sorry I forgot to mention that I use GFortran in MinGW suite. Here is the definiton for the array and memory allocation.
--- Code: ---real, allocatable :: Kmm(:,:)
Allocate ( Kmm(rigid_floor_num*3,rigid_floor_num*3) )
Here is the sample assignment,
Kmm(:,:) = Rd_assem(1:test_num-1,1:test_num-1)
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version