- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Debugging a *.for file compiled with full debug (but no interface checking)
/nologo /debug:full /Od /Ob2 /I"Debug/" /I"..\\..\\include" /I"..\\..\\ComModules\\Debug" /reentrancy:threaded /d_lines /debug-parameters:all /Qsave /align:commons /Qzero /fpe:1 /iface:cvf /module:"Debug/" /object:"Debug/" /Fd"Debug\\vc100.pdb" /traceback /libs:dll /threads /c
Intel Visual Fortran Composer XE 2011 Integration for Microsoft Visual Studio* 2010, 12.0.3470.2010
VS 10
does not step into a subroutine in the same file
SUBROUTINE HELLO
...
call SUB(
& s1(isub)%ns2,
& s1(isub)%s2(1),
& s1(tb)%ns2,
& s1(tb)%s2(1),
& n_whatsthis,
& nope(isub),
& nope(tb),
& s1(isub)%ackstatus,
& s1(tb)%ackstatus
& )
Setting breaks at the first and last executable lines of SUBROUTINE SUB (which has only one RETURN) at the end
subroutine SUB(n1,list1,n2,list2,new,ack1,ack2,s1,s2)
implicit none
integer n1,n2,new,ack1,ack2
integer list1(*), list2(*)
logical s1, s2
...is accepted by VS10 but although a break at "call SUB" is reached execution does not stop at the breaks in SUB. Stepping into (F11) at call SUB steps over the lines setting up the addresses of the arguments but does not step into SUB. Breaks and debugging work in the calling routine.
The file has a history of compilation (and debugging) in earlier versions of IVF and both subroutines are working. The file is too big (and proprietary) to attach but is there more information that could be helpful to explain why subroutine SUB cannot be debugged? (Even though SUB is working debugging is helpful for illustration and instruction.)
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
![](/skins/images/7FC17B7B85029576C25F1E43CE255B51/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page