I answered a question in the XPage forum yesterday but I thought that this might be something worth writing a line about
because this is one of the things that I was wonderign about when starting with XPages.
To view the print statement you should look in the menu
Help -> Support -> view trace
Or you could create a new icon and in the property box for target
add the following -RPARAMS - console
The last param is also great when debugging Notes clients that doesn't startup.
But beware if you close the console window the client crashes!!