View Array contents in Qt Creator debugger

前端 未结 5 1874
傲寒
傲寒 2021-01-08 01:25

I am using Qt on Ubuntu. When I debug I only see the very first value of the array in Locals and Watchers. How can I view all the array contents?

struct node         


        
5条回答
  •  礼貌的吻别
    2021-01-08 02:06

    In Expression evaluator, Try (int[10])(*myArray) instead of (int[10])myArray

    Or, *myArray@10 instead of myArray@10

提交回复
热议问题