From 156e02bc01f5cbbf11614fab58f5525550bdfc8a Mon Sep 17 00:00:00 2001 From: Daco Harkes Date: Fri, 23 Aug 2024 09:53:38 +0000 Subject: [PATCH] [doc/ffi] Contributing to `dart:ffi` doc 2 Change-Id: I2a939f9dd561e644696e2cead3363351aaed63f8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/381622 Auto-Submit: Daco Harkes Reviewed-by: Hossein Yousefi Commit-Queue: Hossein Yousefi --- runtime/docs/contributing_to_dart_ffi.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/runtime/docs/contributing_to_dart_ffi.md b/runtime/docs/contributing_to_dart_ffi.md index c5222d0350f..b50d25c42cf 100644 --- a/runtime/docs/contributing_to_dart_ffi.md +++ b/runtime/docs/contributing_to_dart_ffi.md @@ -113,6 +113,21 @@ If you’re using vscode, you can use the following configuration to run the ana Replace the file under test in args as needed. +To run the unit tests in the debugger: + +``` + { + "name": "dart pkg/analyzer/test/...", + "type": "dart", + "request": "launch", + "program": "pkg/analyzer/test/src/diagnostics/subtype_of_struct_class_test.dart", + "args": [], + "enableAsserts": true, + "cwd": "${workspaceFolder}", + }, +``` + +Replace the test as needed. ## Gotcha’s