| View previous topic :: View next topic |
| Author |
Message |
stfark1
Joined: 02 Sep 2008 Posts: 261
|
Posted: Sun Dec 21, 2025 2:14 pm Post subject: Break Point |
|
|
| 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 |
|
 |
Robert

Joined: 29 Nov 2006 Posts: 467 Location: Manchester
|
Posted: Sun Dec 21, 2025 8:17 pm Post subject: |
|
|
| Which version of the compiler do you have? |
|
| Back to top |
|
 |
stfark1
Joined: 02 Sep 2008 Posts: 261
|
Posted: Mon Dec 22, 2025 2:11 am Post subject: Break Point |
|
|
| I have version 8.1.1, nearest I can tell, Sid Kraft |
|
| Back to top |
|
 |
mecej4
Joined: 31 Oct 2006 Posts: 1946 Location: USA
|
Posted: Mon Dec 22, 2025 2:39 am Post subject: |
|
|
| 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 |
|
 |
stfark1
Joined: 02 Sep 2008 Posts: 261
|
Posted: Mon Dec 22, 2025 2:12 pm Post subject: Break Point |
|
|
| 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 |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8320 Location: Salford, UK
|
Posted: Mon Dec 22, 2025 2:31 pm Post subject: |
|
|
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 |
|
 |
stfark1
Joined: 02 Sep 2008 Posts: 261
|
Posted: Tue Dec 23, 2025 2:13 am Post subject: Breakpoint |
|
|
| Ok Paul, Thanks, may be the problem as I do have comments in the code, Sid Kraft |
|
| Back to top |
|
 |
stfark1
Joined: 02 Sep 2008 Posts: 261
|
Posted: Tue Dec 23, 2025 2:28 pm Post subject: Break Point |
|
|
| 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 |
|
 |
mecej4
Joined: 31 Oct 2006 Posts: 1946 Location: USA
|
Posted: Tue Dec 23, 2025 5:11 pm Post subject: |
|
|
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 |
|
 |
|