Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Viewing only some type fields in debugger

Deleted_U_Intel
Employee
382 Views
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
0 Kudos
0 Replies
Reply