MCPcopy Create free account
hub / github.com/argotorg/solidity / handleEthdebug

Method handleEthdebug

solc/CommandLineInterface.cpp:558–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558void 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
579void CommandLineInterface::handleEthdebug(std::string const& _contract)
580{

Callers

nothing calls this directly

Calls 8

jsonPrintFunction · 0.85
removeNullMembersFunction · 0.85
ethdebugMethod · 0.45
emptyMethod · 0.45
ethdebugCompilationMethod · 0.45
countMethod · 0.45
ethdebugRuntimeMethod · 0.45

Tested by

no test coverage detected