Add verbosity for all hh tasks + upgrade to edr v0.12.0-next.25#225
Add verbosity for all hh tasks + upgrade to edr v0.12.0-next.25#225
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This pull request adds comprehensive documentation for the verbosity flag feature across all Hardhat tasks, enabling developers to debug transactions and tests using call traces. The documentation supports the upgrade to EDR v0.12.0-next.25 by explaining how to use the new verbosity levels.
Changes:
- Added documentation for the
--verbosityflag and its various levels for controlling call trace output - Documented environment variable support (
HARDHAT_VERBOSITY) for standalone scripts - Added cross-references between testing, scripting, and global options documentation
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/content/docs/docs/guides/writing-scripts.mdx | Added HARDHAT_VERBOSITY environment variable documentation and new section explaining how to use verbosity flags for debugging scripts with call traces |
| src/content/docs/docs/guides/testing/index.mdx | Updated shared functionality description to include call traces as a built-in feature alongside code coverage and gas statistics |
| src/content/docs/docs/explanations/global-options.mdx | Added comprehensive "Core Global Options" section with detailed verbosity documentation, including tables for different verbosity levels, usage examples, and explanatory notes |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| <Run command="hardhat --help" /> | ||
|
|
||
| ## Core Global Options |
There was a problem hiding this comment.
I don't think this is the right place. Explanations are explanations of the concept itself. Not each option in this case.
There was a problem hiding this comment.
Given that this is global, it would be better in its own guide. Like "Forking a network"
|
|
||
| The `--verbosity` (or `-v`) option controls the amount of output shown during test execution, script runs, and deployments when using Hardhat Network. Use `-v` flags to increase the verbosity level. For example, `-vvv` sets level 3, and `-vvvvv` sets level 5. The default level is 2. | ||
|
|
||
| **For tests** (`hardhat test`): |
There was a problem hiding this comment.
I think this requires a distinction between Solidity tests, TypeScript tests, and scripts/tasks. It'd be more clear that way.
Co-authored-by: Patricio Palladino <[email protected]>
Co-authored-by: Patricio Palladino <[email protected]>
Co-authored-by: Patricio Palladino <[email protected]>
Docs for PR: NomicFoundation/hardhat#7983
Links to updated pages: