- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page