Use the following to help debug the Developer Sample portal desktop environment:
The Desktop debug file is located at PortalServer-DataDir/portals/portal-ID/logs/portal-instance/portal.0.0.log.
If you get an error message page on the desktop, you can view the source to look at the stack trace.