Page 2 of 2
Re: Tron/Troff for realtime visual debugging
Posted: Sat Apr 03, 2021 2:14 am
by ChrisR
skywalk wrote:Not gonna lie, Edit and Continue was a timesaver in Visual Studio.
But, PB compiles fast enough to accomplish rapid prototyping.
Definitely curious how emitting C will impact the debug flow.
Yeah, the compilations are really fast on PB, one of the strong points
"Edit and Continue" is a feature that remains interesting and very useful to test special cases.
I used it a lot in my previous job on IBM As400 (or IBM iseries).
It was a big time saver also, to avoid compiling too often. The compilations were placed in a job queue and we had to wait our turn.
Re: Tron/Troff for realtime visual debugging
Posted: Sat Apr 03, 2021 3:53 pm
by freak
ChrisR wrote:Not related to the step,
I am more interested of being able to change a variable value on a breakpoint to test a special condition.
That is actually possible from the "Debug Output" window. Run the following program and then type "set a = 999" into the field at the bottom of the debug output window and press enter. Then continue the program.
Code: Select all
a = 123
Repeat
Debug "a = " + a
CallDebugger
ForEver
It works with more complex assignments as well, i.e. "set myArray(25)\someStructField = someOtherVariable + 1" will work too.
I am not sure why that is not documented

Re: Tron/Troff for realtime visual debugging
Posted: Sat Apr 03, 2021 4:02 pm
by skywalk
OMG freak!
I stumbled on that like 9 years ago but forgot about it when strings acted badly.
But now I will use that for basic types and within structures.
Thanks!
EDIT: Edit and Continue in Visual Studio and other languages also allows for code changes. But, that requires an intermediate runtime framework. For example, you can change If statements and logical blocks without stopping.
Re: Tron/Troff for realtime visual debugging
Posted: Sun Apr 04, 2021 6:27 pm
by ChrisR
Late to the party, I missed your reply
that' s Great, thanks for the info freak
As well as skywalk, I will use it now.
freak wrote:I am not sure why that is not documented

Yes, it would be nice, it's really useful
