How can i trace the script on IDM

I want to do trace both for system script and custom script, may i know how I can achieve this?

Is there any debugger available?