The NetWeaver Developer Studio provides tools for debugging Web Dynpro applications. You can debug both the implementation of controllers and context structure and content.
Debugging Web Dynpro Implementation
Debugging Contexts