Re: [Anjuta-list] An off-topic question about debugging?



Hi Sang Chul,

Sang Chul Choi a écrit :
When I created dynamically an array of something (e.g., int), sometimes
I can only see or watch the first element not further down any other
element. I think that I had this experience before when I use GDB. This
might be a GDB-related question. Do you know how I can see all other
elements other than the first element?

This is related to GDB. I think you can cast you variable to the type you expect. By example inspect (int[10])_your_array_ instead of just _your_array_

Regards,

Sébastien




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]