Skip to content

debug symbols don't work on windows #516

@andrewrk

Description

@andrewrk

Here's a zig program:

const c = @cImport({
    @cDefine("_NO_CRT_STDIO_INLINE", "1");
    @cInclude("stdio.h");
    @cInclude("string.h");
});

const msg = c"Hello, world!\n";

export fn main(argc: c_int, argv: &&u8) -> c_int {
    if (c.printf(msg) != c_int(c.strlen(msg)))
        return -1;

    @panic("ahhh");
}

When you debug this with MSVC, there is no source code available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-windowsMicrosoft WindowsupstreamAn issue with a third party project that Zig uses.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions