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

Commit 8ac0f47

Browse files
theRobinatorqiyigg
authored andcommitted
Add docs for debugging with the control flow disabled (#4555)
1 parent b20fce2 commit 8ac0f47

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: docs/debugging.md

+14
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,20 @@ used from the browser's console.
148148
// You can also limit the scope of the locator
149149
> window.clientSideScripts.findInputs('username', document.getElementById('#myEl'));
150150
```
151+
152+
**Debugging with the control flow disabled**
153+
154+
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),
155+
the above methods will not work. Instead, you can now use native `debugger` statements to pause your code. However, you
156+
will need to start your tests using Node's `--inspect-brk` option:
157+
158+
```
159+
node --inspect-brk node_modules/.bin/protractor <config_file>
160+
```
161+
162+
You will then be able to use the Chrome devtools at chrome://inspect to connect to the tests.
163+
164+
151165
Setting Up VSCode for Debugging
152166
-------------------------------
153167
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.

0 commit comments

Comments
 (0)