Re-inventing Debug
#2
(09-24-2022, 11:56 PM)PhilOfPerth Wrote: Somewhere in the system, there’s a Debug that used to be available for finding and fixing coding errors, but it seems to be no
 longer usable or available.
I would like to see one re-produced that could be used by pleb- coders (like me) easily and effectively, to help find some of 
those elusive bugs we all encounter. I’m not capable of this kind of project, but here are the “bare bones” for an algorithm that 
I believe would be close to what we need:

1.     The declarant that starts the debug feature, _Debug  which is placed before executable code.
2.     Coders place a breakpoint, maybe * or BP, at any points they wish to see the state of their variables.
3.     When run, when the program reaches a BP, it pauses execution, and switches to another screen that displays (only) the 
variables that have changed since the last BP, with their new state.
4.     Pressing a key clears the new screen, returns the original screen and resumes the programme.
5.     A closing key is needed for when coding is complete, that removes all BPs and the Debug declarant.
 
Whatever is produced, it needs to be simple to use, flexible, and easily accesssed.

This may seem like re-inventing the wheel, but some of our wheels are a bit flat-bottomed or even triangular at the moment!
Rolleyes  Any takers?

I told you the debug feature is still there and working, but if people are to lazy to use the wiki and spend some time to learning by doing, then this is not the fault of QB64.
Reply


Messages In This Thread
Re-inventing Debug - by PhilOfPerth - 09-24-2022, 11:56 PM
RE: Re-inventing Debug - by RhoSigma - 09-25-2022, 07:39 AM
RE: Re-inventing Debug - by PhilOfPerth - 09-25-2022, 10:53 AM
RE: Re-inventing Debug - by RhoSigma - 09-25-2022, 12:13 PM
RE: Re-inventing Debug - by bplus - 09-25-2022, 02:05 PM
RE: Re-inventing Debug - by RhoSigma - 09-25-2022, 03:24 PM
RE: Re-inventing Debug - by bplus - 09-25-2022, 02:15 PM
RE: Re-inventing Debug - by Kernelpanic - 09-25-2022, 03:15 PM
RE: Re-inventing Debug - by bplus - 09-25-2022, 03:24 PM
RE: Re-inventing Debug - by RhoSigma - 09-25-2022, 03:38 PM
RE: Re-inventing Debug - by bplus - 09-25-2022, 03:46 PM
RE: Re-inventing Debug - by mnrvovrfc - 09-25-2022, 05:42 PM
RE: Re-inventing Debug - by Steffan-68 - 09-25-2022, 04:29 PM
RE: Re-inventing Debug - by RhoSigma - 09-25-2022, 04:39 PM
RE: Re-inventing Debug - by mnrvovrfc - 09-25-2022, 05:34 PM
RE: Re-inventing Debug - by bplus - 09-25-2022, 06:30 PM
RE: Re-inventing Debug - by SpriggsySpriggs - 09-28-2022, 05:52 PM
RE: Re-inventing Debug - by James D Jarvis - 09-29-2022, 04:17 PM



Users browsing this thread: 7 Guest(s)