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
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
Scott Waye has marked this topic as resolved.
Last updated: Nov 22 2024 at 17:03 UTC