Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Add docs for debugging with the control flow disabled (#4555)
Browse files Browse the repository at this point in the history
  • Loading branch information
theRobinator authored and qiyigg committed Oct 26, 2017
1 parent b20fce2 commit 8ac0f47
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,20 @@ used from the browser's console.
// You can also limit the scope of the locator
> window.clientSideScripts.findInputs('username', document.getElementById('#myEl'));
```

**Debugging with the control flow disabled**

If you've set the `SELENIUM_PROMISE_MANAGER` config value to false to [disable the control flow](https://github.com/angular/protractor/blob/master/docs/control-flow.md),
the above methods will not work. Instead, you can now use native `debugger` statements to pause your code. However, you
will need to start your tests using Node's `--inspect-brk` option:

```
node --inspect-brk node_modules/.bin/protractor <config_file>
```

You will then be able to use the Chrome devtools at chrome://inspect to connect to the tests.


Setting Up VSCode for Debugging
-------------------------------
VS Code has built-in [debugging](https://code.visualstudio.com/docs/editor/debugging) support for the Node.js runtime and can debug JavaScript, TypeScript, and any other language that gets transpiled to JavaScript.
Expand Down

0 comments on commit 8ac0f47

Please sign in to comment.