How to Debug Ep form

I need to debug the server side code of an EP form. Can somebody provide step by step guide on how to do that?

The usual question: what’s your version of AX?

I’m using AX 2009.

Check out the documentation: How to: Debug X++ Code on EP Pages.