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

stage2: add debug info for payload captures + inline function parameters #11222

Merged
merged 6 commits into from Mar 19, 2022

Conversation

Vexu
Copy link
Member

@Vexu Vexu commented Mar 18, 2022

This add dbg_block_{begin,end} which control visibility of debug info variables:

pub fn main() void {
    {
        var a: u32 = undefined;
        a = 0;
    }
    {
        var a: u32 = undefined;
        a = 1;
        @breakpoint();
        // p a
        // before: 0
        // after: 1
    }
}

Fixes #7239 for stage2.

@andrewrk andrewrk merged commit a318aee into ziglang:master Mar 19, 2022
@Vexu Vexu deleted the dbg_block branch March 19, 2022 20:07
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.

Payload capture has incorrect debug info
2 participants