You can test or debug a portlet on a local portal test environment server or a remote portal server attach server.
Debugging tools allow you to set breakpoints and step through the code to diagnose problems.
To test or debug a portlet project:
To publish or deploy a portlet project to a remote portal server, see Publishing portlets.