debug in browser using testacular (now karma)

  1. In karma.conf.js:

    browsers = ['Chrome'];
    
  2. In your failing spec:

    it('spec', function() {
        debugger; // This is like setting a breakpoint
        // ...
    });
    
  3. Run Karma.
  4. Go to the newly opened Chrome Browser, open the console and refresh the page.

Now in Chrome’s Developer Tools source tab you should see the execution stopped at the debugger.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)