| 556 | } |
| 557 | |
| 558 | void CommandLineInterface::handleEthdebug() |
| 559 | { |
| 560 | if (m_options.compiler.outputs.ethdebugResources) |
| 561 | { |
| 562 | std::string const ethdebug{jsonPrint(removeNullMembers(m_compiler->ethdebug()), m_options.formatting.json)}; |
| 563 | if (!m_options.output.dir.empty()) |
| 564 | createFile("ethdebug_resources.json", ethdebug); |
| 565 | else |
| 566 | sout() << "======= Debug Data (ethdebug/format/info/resources) =======" << std::endl << ethdebug << std::endl; |
| 567 | } |
| 568 | |
| 569 | if (m_options.compiler.outputs.ethdebugCompilation) |
| 570 | { |
| 571 | std::string const compilation{jsonPrint(removeNullMembers(m_compiler->ethdebugCompilation()), m_options.formatting.json)}; |
| 572 | if (!m_options.output.dir.empty()) |
| 573 | createFile("ethdebug_compilation.json", compilation); |
| 574 | else |
| 575 | sout() << "======= Debug Data (ethdebug compilation) =======" << std::endl << compilation << std::endl; |
| 576 | } |
| 577 | } |
| 578 | |
| 579 | void CommandLineInterface::handleEthdebug(std::string const& _contract) |
| 580 | { |
nothing calls this directly
no test coverage detected