Leaving aside a possible customized debugger, is this the concept? 1. Some utility, possibly a debugger, possibly special trace statements, outputs information directly into a Leo outline (I would prefer that it not be the outline under test); 2. Use clone-xx with predicates on this outline to extract nodes of interest that may be related;
Personally, I think these capabilities would be very helpful: 1. When a stack trace outputs a line/position in a file (which could be, say, a Python standard library module, not necessarily your own code), control-click would open that file for you and navigate to the location; 2. Have the debugger highlight the current line in its actual node in its Leo outline, instead of just giving the line number in the generated script-file. 3. Having some convenient way to monkey patch a routine to add traces and print statements temporarily without actually modifying the original outline. This is less important because one can always use @Edward's approach of modifying the code but running another Leo session to test it (or, if running it as an external file, you can just run it) so at least you don't have to keep closing and reopening Leo each time you make a change. On Friday, June 17, 2022 at 4:45:22 AM UTC-4 Edward K. Ream wrote: > On Thursday, June 16, 2022 at 9:23:50 AM UTC-5 Edward K. Ream wrote: > > - Aha: A special-purpose debugger can collect arbitrary dynamic *python > *data. >> > > > This supposed Aha looks more like a brain spike :-) I have no idea why I > thought a special purpose debugger might help gather data. > > The easy way to collect python data is with added python statements in the > source code that I'm studying. In contrast, using a debugger to gather > data would be roundabout, slow and obscure. > > Perhaps I was thinking that an enhanced g.SherlockTracer class could > gather python data, not text traces, but I if so I was almost certainly > jumping to conclusions. > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/7791af6c-035f-4180-8b10-ca1b0e4f4ccbn%40googlegroups.com.
