Add Copilot skill: diagnosing dotnet/android across C# / Java / C++ / generated native
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 85/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
調査の方向性
.github/skills/diagnose-dotnet-android/SKILL.md を作成し、まず既存の skill の frontmatter と、関連する android-tombstone-symbolication および azdo-build-investigator skill を確認します。指定された C#、C++、Java のロギング例、logcat のフィルタリング、tombstone と生成された出力の調査、仮説の検証を文書化します。すべての受け入れ基準とトリガーフレーズが網羅されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
Diagnosing runtime issues in dotnet/android requires following execution across four loosely-coupled layers: C# (Mono.Android), Java (the JCW layer), C++ (the native host), and generated LLVM IR (marshal methods, typemap). There is no CLI debugger that can step through all four, and static reasoning about "who calls whom" is often wrong because the coupling is dynamic (JNI reflection, function pointers passed through init args, registered native methods).
During PR #11091, several hours were lost chasing assumed call paths that turned out to be completely dead (e.g., a C++ registerNatives entry point we were "fixing" was never actually called — verified only after adding logging).
Proposal
Add .github/skills/diagnose-dotnet-android/SKILL.md documenting best practices for cross-language diagnosis:
-
Add logging at each layer and verify assumptions empirically:
- C#:
AndroidLog.Print (AndroidLogLevel.Warn, "TAG", "...")/Logger.Log - C++:
log_warn (LOG_DEFAULT, "..."sv, ...)insrc/native/ - Java (if modifying JCW templates):
android.util.Log.w("TAG", "...")
- C#:
-
Absence of log output is itself evidence. If your log never fires, your mental model of the call graph is wrong. Walk back and re-verify entry points.
-
Grep logcat with meaningful prefixes:
adb logcat -d | grep -E 'TAG|FATAL|tombstone' -
Cross-reference tombstones for native crashes — use the
android-tombstone-symbolicationskill. -
Decompile generated IL/LLVM IR when behavior suggests generator output differs from generator source.
-
Bracket your hypothesis — before "fixing" a suspected bug, add a log that proves the buggy code path is actually reached. If the log doesn't fire, the bug is somewhere else.
Acceptance criteria
- Skill exists with proper frontmatter.
- Triggered by phrases like "diagnose android runtime", "why isn't this code being called", "logcat".
- Includes concrete logging snippets for C#, C++, and Java layers.
- Cross-references related skills (
android-tombstone-symbolication,azdo-build-investigator).
Discovered during
PR #11091 — adding the CoreCLRTrimmable CI lane. Significant time lost to flawed assumptions about call paths that could have been cheaply disproven with a single log statement.
- 主要言語
- C#
- スター
- 2.1k
- フォーク
- 580
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 215
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/android のほかの issue
-
Area: App+Library Build
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Area: Mono.Android
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/android#9192 · コメント 4 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[aw] Android PR Reviewer is missing required tool対応中かも @jonathanpeppers が今日担当しました。 オープンagentic-workflows needs-triage
dotnet/android#12935 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
Area: App Runtime needs-triage
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
builtbybel/CrapFixer#112 ·
-
area-ai untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
dotnet/extensions#7790 ·
メンテナーはふだん 1 日以内に返信
-
Beginner Friendly T: Bugfix
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
space-wizards/space-station-14#46220 ·
メンテナーはふだん 1 日以内に返信
-
P2 testing
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
area-Infrastructure-coreclr os-ios os-maccatalyst os-tvos untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dotnet/runtime#134766 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信