How can I debug protractor tests in Selenium?

Please anyone tell me of a way so that i can debug protractor tests in Selenium.