Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added common/images/debugger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,23 @@ After setting the breakpoint, refresh the page. Now, let's explore the script tr

As result, you can see the input parameter values and what the function returns. Moreover, we're also able to change the function's values on the fly.

### Invoking DevTools

To use DevTools you can follow the previously described steps, or you can use the `debugger` keyword in your JavaScript code to invoke the browser's DevTools.

```javascript
function sum(a, b) {
var sum = a + b;
debugger;
return sum;
}
```

Then, just make sure that your method is called and wait until the debugger is paused at the specified point.

![Debugger]({{ site.baseurl }}/common/images/debugger.png)

## See also

[Debug using uiRegistry]({{ page.baseurl }}/ui_comp_guide/concepts/ui_comp_uiregistry.html#debug_uiregistry)
[DevTools]: https://developers.google.com/web/tools/chrome-devtools/javascript/
[DevTools](https://developers.google.com/web/tools/chrome-devtools/javascript/)