Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add output selection support for ethdebug #15293

Closed

Conversation

aarlt
Copy link
Member

@aarlt aarlt commented Jul 23, 2024

Depends on #15289.

@aarlt aarlt added the has dependencies The PR depends on other PRs that must be merged first label Jul 23, 2024
@aarlt aarlt self-assigned this Jul 23, 2024
Copy link
Member

@clonker clonker left a comment

Choose a reason for hiding this comment

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

Looks good to me. I was wondering if it would also be an option to throw in case the output is requested (together with the appropriate debug-info flag) as you're essentially just swallowing it now which might confuse someone unsuspecting. But then again it's not listed in the options so I think it's fine this way as well.

@cameel cameel changed the title [ethdebug] Add output selection support for ethdebug. Add output selection support for ethdebug Jul 24, 2024
@aarlt
Copy link
Member Author

aarlt commented Jul 24, 2024

I will still add the standard-json import part to this PR. This part I didn't pushed yet, because I saw that I need to add additional tests to verify validation logic. I will add this later today.

@aarlt aarlt marked this pull request as draft July 24, 2024 11:15
@@ -995,6 +996,8 @@ void CommandLineInterface::handleCombinedJSON()
contractData[g_strFunDebugRuntime] = StandardCompiler::formatFunctionDebugData(
m_assemblyStack->runtimeObject(contractName).functionDebugData
);
if (m_options.compiler.combinedJsonRequests->ethdebug)
contractData[g_strEthdebug] = Json::object();
Copy link
Member

@cameel cameel Jul 24, 2024

Choose a reason for hiding this comment

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

Combined JSON has been deprecated for ages now (#10278) and we're likely to drop it in the next breaking release. It does not make sense add more things to it at this point.

This should be standalone compiler output instead.

@aarlt aarlt force-pushed the add_ethdebug_output_selection branch from 5ef3239 to 77c474a Compare July 24, 2024 18:54
@aarlt aarlt force-pushed the enable_debug_info_ethdebug branch 5 times, most recently from ec729b3 to ee2bc12 Compare July 24, 2024 23:05
@aarlt aarlt force-pushed the enable_debug_info_ethdebug branch from ee2bc12 to 9772d20 Compare August 1, 2024 18:51
@aarlt
Copy link
Member Author

aarlt commented Aug 1, 2024

Replaced by #15289.

@aarlt aarlt closed this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ethdebug has dependencies The PR depends on other PRs that must be merged first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants