Skip to content

Add verbosity for all hh tasks + upgrade to edr v0.12.0-next.25#225

Merged
kanej merged 13 commits intomainfrom
edr-upgrade-verbosity-levels
Mar 31, 2026
Merged

Add verbosity for all hh tasks + upgrade to edr v0.12.0-next.25#225
kanej merged 13 commits intomainfrom
edr-upgrade-verbosity-levels

Conversation

Copilot AI review requested due to automatic review settings February 24, 2026 16:22
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hardhat-website Ready Ready Preview, Comment Mar 31, 2026 0:53am

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 --verbosity flag 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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the right place. Explanations are explanations of the concept itself. Not each option in this case.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is global, it would be better in its own guide. Like "Forking a network"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done here: 2d61f35

Comment thread src/content/docs/docs/explanations/global-options.mdx Outdated

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`):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this requires a distinction between Solidity tests, TypeScript tests, and scripts/tasks. It'd be more clear that way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done here: 2d61f35

Comment thread src/content/docs/docs/explanations/global-options.mdx Outdated
Comment thread src/content/docs/docs/guides/writing-scripts.mdx Outdated
@kanej kanej added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit 3358488 Mar 31, 2026
3 checks passed
@kanej kanej deleted the edr-upgrade-verbosity-levels branch March 31, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants