[Vm-dev] Printing to stout inside a Squeak plugin class
leves at caesar.elte.hu
Thu Jun 17 17:14:10 UTC 2021
On Tue, 15 Jun 2021, Robert wrote:
> I wish to print some debugging info to stdout when calling a primitive. How can I do this in Squeak primitive code?
I think currently your only option is to use the #cCode: method. Something
| variableToPrint |
<var: #variableToPrint type: #'unsigned int'>
variableToPrint := 10.
self cCode: 'printf("variableToPrint''s value is %u\n", variableToPrint)'
More information about the Vm-dev