Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我运行这样的安全帽脚本:
npx hardhat run myscript.js
我希望能够在 Chrome 检查器中进行调试,但是当我这样做时
npx --node-arg=--inspect-brk hardhat run myscript.js
我收到错误消息“错误:--node-arg/-n 只能用于带有节点脚本的包。”
有没有办法在 Chrome 中调试安全帽脚本而不求助于 console.log?