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 

New features for DEBUGGER

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Suggestions
View previous topic :: View next topic  
Author Message
DanRRight



Joined: 10 Mar 2008
Posts: 2073
Location: South Pole, Antarctica

PostPosted: Sat Aug 04, 2018 7:56 pm    Post subject: New features for DEBUGGER Reply with quote

Would be great to add to debugger the possibility to chose range of array indices when displaying large multidimensional arrays. If you click to open the window which prints array content, on top of it would be good to have small menu which allows to restrict indices within specified range.

Another a bit more complex feature would be to display the array content in graphics form. Native %PL now can do that. Just add XY plotter where user can specify X and Y ranges, normalization on own maximum or specified values and LOG/LINEAR axis options. I have a prototype for that to play.

The Surfaceplot and 3D array visualization with OpenGL would be more complex but also more selling feature. Also have a demo.
Back to top
View user's profile Send private message
John-Silver



Joined: 30 Jul 2013
Posts: 1204
Location: Aerospace Valley

PostPosted: Sun Aug 05, 2018 2:10 am    Post subject: Reply with quote

That would be a great addition Dan.
Unfortunately would need to get %PL properly 'stable' and robust before integrating into debugger,or anything else for that matter.
Asking for trouble otherwise.
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2073
Location: South Pole, Antarctica

PostPosted: Wed Apr 03, 2019 7:10 am    Post subject: Reply with quote

Absolutely a must is highlighting matching DO/ENDDO and IF/ELSE/ENDIF

You hover mouse over IF, ELSE or ENDIF and debugger highlights all other starts and ends of it.

Often you can not find any beginnings or ends of these constructs
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Apr 03, 2019 7:54 am    Post subject: Reply with quote

I think that would be a useful addition to Plato but it is not really something you could reasonably put into an independent debugger. An editor like Plato already has lots of functionality to make this possible.

The Win32 and x64 debuggers can be integrated with Plato so this would be possible for users who are happy to use Plato as an IDE.

For C/C++ programs, Plato already has something like this for matching curly brackets and the same sort of thing could be added for Fortran programs.

Notepad++ has a similar feature. If you select say "DO" then the corresponding "DO" in "END DO" is also highlighted provided the space is used to separate "END" from "DO".

The suggestion of using a hover event is a little more challenging but eminently doable given time/manpower.
Back to top
View user's profile Send private message
DanRRight



Joined: 10 Mar 2008
Posts: 2073
Location: South Pole, Antarctica

PostPosted: Sun Oct 06, 2019 8:54 pm    Post subject: Reply with quote

Tried to suggest one more time to add to the SDBG the ability to see starting and ending line of DO/ENDDO , IF/ENDIF but found this was already discussed recently and i missed it.

It took me few months to recognize that i saved same data many times overwriting older one because by mistake placed saving data into the body of long DO/ENDDO. Was wondering why after do loop increased to 500-1000 from 50 some quick before operation started to lag like a hell. I even catched the event of saving data to harddrive by stopping debugger exactly on it (because opening files and saving data usually takes noticeable time) but still was surprised why this small saving was going excessively long.

So the reason was that i had DO loop starting and ending kilometers of source code away from this point where saving took place.

That is what happening when the source code is growing and growing and at some point it becomes unmanageable without good debugger. Similar situation with saving data many times in a loop by mistake i guarantee happened to everyone in a lifetime.

Isn't matching do/enddo if/endif is what compiler must to recognize first and hence can pass this info to the SDBG? If user ask about start_line or end_line of specific DO loop it just show the line number or jump to it. Surprised no one asked to add this feature 30-40 years ago, i must be in all Fortran4 of Fortran-66 debuggers, it does not matter that there were not the DO/ENDDO constructs but "DO label" ones. Isn't strange that some editors are doing that but SDBG does not? Ideally would be that SDBG to tell the start/end of do loop by right clicking on its counting variable ijk like in DO ijk=1,1000

I did not use Plato. In the past i tried it and this ended in many suggestions to add this and that and fix this and that. Hopefully it matured already to works with many files and many projects as easy as with BAT files by just changing directory by moving mouse from one Total Commander screen to another (i have 6 of them of different background color open with 12 windows) and clicking on BAT file. Same ultimate simplicity is with the source code files: the used award winning Notetab editor (not Notepad) has all the sources in its tabs and opens them in one click and keeps open for months.

As to Notepad++, thanks for suggestion, may be it's time to switch to this editor. Few of them got some useful features lately.
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 -> Suggestions 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