Stream: wit-bindgen

Topic: ✔ debug single test


view this post on Zulip Scott Waye (Aug 04 2023 at 03:24):

Is there a way to debug a single wit file for wit-bindgen? I'm using VS code and have this launch config:

        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug floats.wit in library 'wit-bindgen-csharp'",
            "cargo": {
                "args": [
                    "run",
                    "c-sharp",
                    "--string-encoding",
                    "utf8",
                    ".\\floats.wit",
                ],
            },
            "args": [],
            "cwd": "${workspaceFolder}"
        },

But when it runs it adds message-format to the wit-bindgen parameters and fails:

    Finished dev [unoptimized + debuginfo] target(s) in 0.16s
     Running `target\debug\wit-bindgen.exe c-sharp --string-encoding utf8 .\floats.wit --message-format=json`
error: unexpected argument '--message-format' found

view this post on Zulip Scott Waye (Aug 04 2023 at 17:11):

Scott Waye said:

Is there a way to debug a single wit file for wit-bindgen? I'm using VS code and have this launch config:

        {
            "type": "lldb",
            "request": "launch",
            "name": "Debug floats.wit in library 'wit-bindgen-csharp'",
            "cargo": {
                "args": [
                    "run",
                    "--",
                    "c-sharp",
                    "--string-encoding",
                    "utf8",
                    ".\\floats.wit",
                ],
            },
            "args": [],
            "cwd": "${workspaceFolder}"
        },

Fixed above

view this post on Zulip Notification Bot (Aug 04 2023 at 17:11):

Scott Waye has marked this topic as resolved.


Last updated: Dec 23 2024 at 12:05 UTC