diff --git a/src/dawn/node/README.md b/src/dawn/node/README.md index d1b7e4ab06..1d31764964 100644 --- a/src/dawn/node/README.md +++ b/src/dawn/node/README.md @@ -118,6 +118,21 @@ Replacing: - `[path-to-dawn.node]` this the path to the `dawn.node` module built by the [build step](#Build) - `test-query` with the test query string. Example: `webgpu:shader,execution,builtin,abs:*` +## Debugging dawn-node issues in gdb/lldb + +It is possible to run the CTS with dawn-node directly similarly to Debugging TypeScript with VSCode: + +```sh +cd +[path-to-node] \ # for example /third_party/node//node + -e "require('./src/common/tools/setup-ts-in-node.js');require('./src/common/runtime/cmdline.ts');" \ + -- \ + dummy-arg \ + --gpu-provider [path to dawn.node] \ + [test-query] +``` + +This command is then possible to run in your debugger of choice. ## Known issues