Studio 3.52 Watch window array var sizes

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Does anyone know what the maximum size of an array that can be viewed in studio watch window. I have a 50 element array that only appears as an array of 6 in studio. I add the array name without an index. This works for some smaller arrays I have - 5 6 & 7 element arrays all get added fine to the watch window this way. Is this a Studio bug or is there some documentation somewhere that tells me this is a no-no. I read the Studio users guide section on watch windows and it makes no mention of this type of issue.

Thanks,

Erick

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Erick:

I can usually only view the 1st 4 elements of an array. It's because AVR Studio *still* sucks. ;-)

Regards,
Clark

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Clark

I find it curious that I can view more elements than you can. I don't necessarily think this is a "Studio Sucks". More or less I'm pretty happy with it. Don't forget it is a free tool. The question becomes what are we doing at the interface to the watch windows that yields different results.

Where is your variable defined(local or global)
how big is it(elements)
what type of array is it(int char...)
how did you add the watch.

I would appreciate any response from Morten or some other Atmel person regarding this issue.

Erick

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

When you find bugs, make a small example program and
*report* them. I've found some very obvious and basic
bugs lately.

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Erick and Clark

The largest array I've watched in any development code is 488 bytes, defined as a global: char display_buffer[122][4]. The largest local array I've tried so far is 18 bytes: char node_type[3][6]. I've also got a global structure which is 288 bytes, consisting of a 255 byte array of chars and a mixture of individual chars/ushorts. Both these arrays and the structure can be displayed in full via Studio (using v3.52) if I click on the + to the left of the variable name in the watch window. When clicking + on large arrays, I always get a requester asking me if I want to show the entire array or just the first 100 elements.

I usually add watches by typing the variable name into the watch window, but dragging and dropping from the source window makes no difference. It also makes no difference if I'm running in emulator or simulator mode.

Basically, in all the time I've been using Studio (from v1.45 or thereabouts) I don't recall having any difficulty in viewing entire arrays/structures. Granted, it's been a while since I used anything older than 3.x, so I *may* be forgetting some problems from back then, but as far as 3.52 goes I'm quite sure that I've never had a problem in viewing whole arrays.

The only thing I will say here is that, if I *don't* click the + for these large arrays/structs, then sometimes I see nothing in the "Value" column, the rest of the time I only see the first few values, which sounds more like the problems you're both describing...

Regards
Chris