Win32Forth


Class Debugging Words


Win32Forth contains some miscellaneous words to help with developing Classes and Objects.

Glossary

: cmethods      ( 'class' -- )          \ W32F      Class debug

Print out all the methods of a class.

: methods       ( object-address -- )    \ W32F      Class debug

Print out all the methods of an object.

: ivars         ( object-address -- )    \ W32F      Class debug

Print out all the object IVARs of an object.

: matches   ( -<name>- )                 \ W32F      Class debug

Print out all the method selectors and IVAR names that have the same hash value as -<name>- will be assigned. If -<name>- is already in use as a selector or an IVAR name then it will appear in the list.

: objects       ( 'class' -- )     \ W32F       Class debug

Display all of the instances of 'class'.

: msee          ( -<method object>- )       \ W32F      Class debug

Display the source code of the method. Either a Class or Object can be supplied.

: mdebug        ( -<method object>- )         \ W32F      Class debug

Set debugging of the method. An Object must be supplied (Classes aren't allowed). NOTE the method will be debugged for all objects that respond to it.

: mdbg          ( -<method object>- )         \ W32F       Class debug

Set debugging of the method and then execute it. An Object must be supplied (Classes aren't allowed). NOTE the method will be debugged for all objects that respond to it.


Document $Id: p-classdbg.htm,v 1.9 2007/05/26 10:24:11 dbu_de Exp $