Tuesday, August 27, 2024

creativity in tool debugging

when have a tool where we want to understand a particular area of it but don’t know where in the code it lives (could be hundreds or thousands of lines of code) it can be helpful to interact with the tool’s graphical user interface or gui.  by clicking on a button and reading the logs can possibly see some text that was run after the button click.  picking some of that printed text can search the code base for where the occurrence of the log/print text showed up.  then could possibly find a file.  in that file could see the method that prints the log text.  then can search for where the method is in the code base.  then can find possibly a different file.  so in this way can use creativity for understanding code that was seen for the first time.

Happy Sketching!