smalltalkDaily

Smalltalk Daily 07/27/10: Setting BreakPoints with Code

July 27, 2010 8:59:32.019

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

Click on the viewer below to watch it now:

If you have trouble viewing that directly, you can click here to download the video directly. If you need the video in a Windows Media format, then download that here.

You can also watch it on YouTube:

Technorati Tags: , ,

Enclosures:
[http://www.cincomsmalltalk.com/casts/stDaily/2010/smalltalk_daily-07-27-10-iPhone.m4v ( Size: 6142017 )]

 Share Tweet This
-->