debugging technique
Dec. 3rd, 2006 07:59 amDear LiveJournal Genie,
Suppose that whenever I click the mouse at a certain widget, the file named "a.txt" gets re-read into my program. I want to figure out how this is happening (i.e. which function is reading the file), so I look at the event handler for the click, but the code is unreadable, and it calls 20 other functions, each of which call 20 functions, etc.
What's a quick way to find out what function is loading the file?
Suppose that whenever I click the mouse at a certain widget, the file named "a.txt" gets re-read into my program. I want to figure out how this is happening (i.e. which function is reading the file), so I look at the event handler for the click, but the code is unreadable, and it calls 20 other functions, each of which call 20 functions, etc.
What's a quick way to find out what function is loading the file?