To debug a portlet project on a remote server, you will use a remote portal server attach server. It is recommended that you debug portlets on a local server rather than a remote server.
The process of debugging a portlet application is exactly the same as for a Web application. You can control and trace the execution of the portlet. You can set the break points in the Java™ source code and the JSP files.
When portlets are published to a server attach server, a Portlet Preview page is created on the remote server. Each portlet is placed on its own page under the Portlet Preview page. Each portlet's page is named user/portletname where user is the user ID that is defined in the server attach server configuration, and portletname is the portlet project name.
To debug the portlet on a remote server: