With Visual Studio Code configured with what mentioned in
Get the Develop Environment Ready,
you can debug products in wasm2native by adding configurations in
launch.json
with code like the following sample:
{
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "[DA] w2n-frontend",
"program": "${workspaceFolder}/../build/${GENERATOR}-${CONFIG}/wasm2native-${OS}-${ARCH}/bin/w2n-frontend",
"args": [
// ... arguments of w2n-frontend
],
"cwd": "${workspaceFolder}",
"terminal": "console",
}
]
}
With Visual Studio Code, debugging unit test cases is quite easy. You can just click the "debug test" button on the right side of each case, then Visual Studio Code would launch a debug process of the unit test cases.
// TODO: TBD