Title: | Digital Fortran |
Notice: | Read notes 1.* for important information |
Moderator: | QUARK::LIONEL |
Created: | Thu Jun 01 1995 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 1333 |
Total number of notes: | 6734 |
Hi, I have a question about debug for fortran source. My customer use ladebug on Digital UNIX V4.0, Digital fortran V4.0. here is my customer's sample : MODULE Dmod REAL,ALLOCATABLE :: VK(:) END MODULE Dmod PROGRAM Dtest USE Dmod,ONLY: VK NSIZE=100 ALLOCATE(VK(NSIZE)) DO J=1,NSIZE VK(J)=J write(6,*) VK(J) END DO STOP END Using debugger, he wants to know how to refer for a value of array declared in module. ( such as VK listed above ) F90 user's manual explaines about it, in dbx (dbx) print $MODULE$VARIABLE but we cannot. please let us know a way , and if we can also do with ladebug. Any help will be appreciated. Thank you, Motoko
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1291.1 | use -ladebug switch on compile and then just do it! | TLE::BORD | Fri May 09 1997 11:55 | 12 | |
Using ladebug, you should be able to see a variable from a module by simply specifying it's name. For example, if you are running ladebug with the code you entered in the previous note, and you had set a break in program Dtest, a simple: print VK will give you the value of the variable VK from the module Dmod. Please note that since you're customer is using ladebug, he should compile the source with the -ladebug switch. This will force debug info to be generated that takes advantage of much of the F90 support within ladebug. --Chris | |||||
1291.2 | Thanks | TKTVFS::KOBAYASHI_MT | ulrix/tsc/mcs/japan | Wed May 14 1997 04:01 | 4 |
I got it! Thank you very much for your help. Motoko |