Viewing only some type fields in debugger

Viewing only some type fields in debugger

I use an array of complex type definitions. But in debugging I usually am only interested in one of the variables. Is there a way to only see that variable?

type example
...
integer :: weight
...
end type example

program main
...
type (example), dimension(10) :: mytypes
...

In the Visual Studio debugger watch I can only enter: mytypes(1:n) and then plow through them to see weight.
What I want to see is mytypes(1:n)%weight.

Is there a way to do this? In desperation, I have created a simple array = mytypes(1:10)%weight and displayed it, but that is not a good solution when the variable in question is used in many places.

Thanks

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.