forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Break Point

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
stfark1



Joined: 02 Sep 2008
Posts: 261

PostPosted: Sun Dec 21, 2025 2:14 pm    Post subject: Break Point Reply with quote

I noticed that with the current version of the SilverFrost Fortran that I have, certain variable assignments are not able to "go to cursor" in the debugger? Is this by choice or do I have an outdated version. If so, where can I get the latest version, Sid Kraft
Back to top
View user's profile Send private message
Robert



Joined: 29 Nov 2006
Posts: 467
Location: Manchester

PostPosted: Sun Dec 21, 2025 8:17 pm    Post subject: Reply with quote

Which version of the compiler do you have?
Back to top
View user's profile Send private message Visit poster's website
stfark1



Joined: 02 Sep 2008
Posts: 261

PostPosted: Mon Dec 22, 2025 2:11 am    Post subject: Break Point Reply with quote

I have version 8.1.1, nearest I can tell, Sid Kraft
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1946
Location: USA

PostPosted: Mon Dec 22, 2025 2:39 am    Post subject: Reply with quote

Sid, as you can see from the posts in the Announcements section of this forum, Version 8.1 dates back to Feb 2017. The most recent version is 9.20, released earlier in Dec 2025. You should certainly update your FTN95 installation, since there have been a number of improvements, bug fixes and enhancements of the features of Fortran supported by the compiler in those eight years.
Back to top
View user's profile Send private message
stfark1



Joined: 02 Sep 2008
Posts: 261

PostPosted: Mon Dec 22, 2025 2:12 pm    Post subject: Break Point Reply with quote

Deleted all folders called "Silverfrost" in the "Program Files", downloaded the latest version of Silverfrost Fortran from this site, Compiled all of my Fortran files again, re-built and executed the debugger, still will not let me "goto cursor" on certain variable assignment files?? How can I upload the executable so you can try, may be my computer but I doubt as does on my Desk top PC also, running the latest Win11 on both machines, also up to date! Sid Kraft[/list][/code]
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8320
Location: Salford, UK

PostPosted: Mon Dec 22, 2025 2:31 pm    Post subject: Reply with quote

Sid

All of the files that you want to access must be compiled using one of the debugging options such as /DEBUG or /CHECK.

Break points can only be set on lines of code that are executable statements, not declarations etc..

Sometimes you may need to experiment a little with the break (run to cursor) point. For example, if the executable statement is followed by a comment then the compiler may use the end of the comment as the line number that is sends to the debugger.
Back to top
View user's profile Send private message AIM Address
stfark1



Joined: 02 Sep 2008
Posts: 261

PostPosted: Tue Dec 23, 2025 2:13 am    Post subject: Breakpoint Reply with quote

Ok Paul, Thanks, may be the problem as I do have comments in the code, Sid Kraft
Back to top
View user's profile Send private message
stfark1



Joined: 02 Sep 2008
Posts: 261

PostPosted: Tue Dec 23, 2025 2:28 pm    Post subject: Break Point Reply with quote

Ok, removed all comments from code, re-compiled all using 64k and debugger, re-built, now, when executing with sdbg64, computes all correctly but when branching to another part of logic, using "goto label". completely ignores! something seriously wrong here, should not be having all of these problems. Sid Kraft, need to upload code?, how?
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1946
Location: USA

PostPosted: Tue Dec 23, 2025 5:11 pm    Post subject: Reply with quote

Sid, You should be able to use the following short program to probe your issues, without needing to upload EXE or ZIP files. Just copy the lines of code into a Fortran source file, say, "tst.f90". Build using the command
ftn95 /debug /64 tst.f90 /link
Now run the program in SDBG64, observe how the program behaves in the debugger, and report your findings in a reply in this forum.

Code:
program tst
   implicit none
   integer :: i
   do i=1,5
! Comment line
     if(mod(i,2).eq.0)go to 5
     print *,i,' is odd'
     cycle
    5 print *,i,' is even'
   end do
end program tst
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group