title: How to debug failed test steps in protractor
body: <p>How to debug failed test steps in protractor?</p>
  
  <p>Following is my test case.</p>
  
  <pre><code>it('Testcase-TC_BY_09 , Case 2: User Selects NO option', function() {
     //Execution Steps 
    Login();//Calling Login Function
  //options Click 
      //book_typeValidation();
      book_type.click();
      expect(Nextbtn.isEnabled()).toBe(true);
      Nextbtn.click();`enter code here`
  
      //True_pages _Validation();
      True_pagesoption.click();
      expect(Nextbtn.isEnabled()).toBe(true);
      Nextbtn.click();
  
      expect(Nextbtn.isEnabled()).toBe(true);
      Nextbtn.click();
  
      expect(Nextbtn.isEnabled()).toBe(true);
      Nextbtn.click();
      Poles_Nooption.click();    
      expect(Nextbtn.isEnabled()).toBe(true);     
      Nextbtn.click();
        });
  </code></pre>
  
  <p>Lets say this test case have 10 test steps.When we execute this test case,if it fails in 5th step how to find tat failed step in protractor?</p>
  
  <p>Right now how it is working is it will show the test case failed in console.But it is not showing which steps it has failed?</p>
  
  <p>Please give your suggestion to find out failed step in protractor.</p>
  
  <p>Thanks in advance.</p>