Smalltalk Daily 07/27/10: Setting BreakPoints with Code
Today's Smalltalk Daily looks at inserting a breakpoint programmatically. To do that, you need to grab this code and file it in, and then use code like this:
"get the method" method := Constructor class methodDictionary at: #determineClassToHandle:. source := method getSource. ^source "Insert the Probe" CodeProbe insertProbeIntoClass: Constructor class selector: #determineClassToHandle: sourceString: source offset: 0
If you can't see the embedded video directly, you can go directly to YouTube for it. Click on the viewer below to watch it now:
You can follow the Smalltalk channel on YouTube for all the "Smalltalk Daily" videos. You can also check out the videos on Vimeo, where the quality is higher, or over on Facebook, if you are a member.
You can download the video directly here. If you need the video in a Windows Media format, then download that here. If you like this kind of video, why not subscribe to "Smalltalk Daily"?
Technorati Tags: smalltalk, debugger, breakpoint