Francisc
Francisc

Reputation: 80475

Is it possible to pause Protractor runtime and inspect local vars?

Is it possible to set a breakpoint (for example) on a line inside a test and be allowed to inspect local vars in Chrome Dev Tools, like you normally can with JavaScript applications?

Thanks.

Upvotes: 0

Views: 115

Answers (1)

alecxe
alecxe

Reputation: 474001

It is definitely possible, Debugging Protractor Tests pretty extensively explains how to debug your tests.

Basically, you need to insert browser.debugger(); line in the place you want to start debugging and run protractor in debug mode:

protractor debug

Upvotes: 1

Related Questions