-
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: Debugging | ||
description: Steps to take when you need to debug Unlighthouse. | ||
--- | ||
|
||
|
||
Unlighthouse is built with many edge-cases in mind, but can't always account for every website. | ||
|
||
## Enable debugging logs | ||
|
||
If you run into any issues with Unlighthouse, the first step should be to re-run the scan with debugging enabled. | ||
|
||
```bash | ||
unlighthouse --site unlighthouse.dev --debug | ||
``` | ||
|
||
## Watch the browser | ||
|
||
When running the scan, you can watch the browser as it runs the Lighthouse tests. This can help you identify any issues that may be causing the scan to fail. | ||
|
||
For this to be configured you will need to create a [Configuration file](/guide/guides/config#configuration-file). | ||
|
||
```ts [unlighthouse.config.ts] | ||
export default { | ||
puppeteerOptions: { | ||
headless: false, | ||
slowMo: 250, // slow down interactions | ||
}, | ||
puppeteerClusterOptions: { | ||
// only run one worker at a time | ||
concurrency: 1, | ||
}, | ||
} | ||
``` | ||
|
||
## Other Steps | ||
|
||
- Check out the [Solving Common Issues](/guide/guides/common-issues) guide for common issues and solutions. | ||
- Consider [disabling using the system Chrome](/guide/guides/chrome-dependency) by setting `chrome.useSystem: false`. | ||
|
||
If you are still having issues, please reach out on the [Discord](https://discord.gg/275MBUBvgP) for one-on-one help. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters