diff options
| author | Takeshi ISHII <2170248+mtei@users.noreply.github.com> | 2019-11-12 07:27:48 +0900 |
|---|---|---|
| committer | James Young <18669334+noroadsleft@users.noreply.github.com> | 2019-11-11 14:27:48 -0800 |
| commit | 80713a8a5802dfc28fe0c602ae73b40e3de800d4 (patch) | |
| tree | 35f671ce76e925f1fb7defac4e374dd4f5225e29 /docs/ja/newbs_testing_debugging.md | |
| parent | f48986dda29f9ca4a88d4b4da9ba00dd7864914e (diff) | |
| download | qmk_firmware-80713a8a5802dfc28fe0c602ae73b40e3de800d4.tar.gz qmk_firmware-80713a8a5802dfc28fe0c602ae73b40e3de800d4.zip | |
Japanese translation of newbs.md and related documents. (#7300)
* add docs/ja/newbs.md
* Update docs/ja/newbs.md
* Updated newbs.md
* Updated newbs.md
* add docs/ja/newbs_learn_more_resources.md
* Update docs/ja/newbs.md
* update link info
他人まかせ :-)
* add docs/ja/newbs_testing_debugging.md
* Update docs/ja/newbs_testing_debugging.md
* Update docs/ja/newbs_testing_debugging.md
* add docs/ja/newbs_building_firmware.md
* update docs/ja/newbs_building_firmware.md
* Update docs/ja/newbs_testing_debugging.md
* Update docs/ja/newbs_building_firmware.md
* Update docs/ja/newbs_building_firmware.md
* Japanese translation of docs/newbs_getting_started.md
* renamed: docs/QMK入門.md -> docs/ja/newbs_getting_started.md
* update docs/ja/newbs_getting_started.md
* add ja/newbs_best_practices.md
There are no plans to translate this file.
With the completion of #7231, I will open a new PR.
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* add docs/ja/newbs_flashing.md
* add docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* update docs/ja/newbs_flashing.md
* change original log format
* update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_getting_started.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_building_firmware_configurator.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* Update docs/ja/newbs_flashing.md
* copy docs/_langs.md and docs/index.html from #7248
Co-Authored-By: shela <shelaf@users.noreply.github.com>
Co-Authored-By: takashiski <takashiskibb@gmail.com>
Co-Authored-By: Takuya Urakawa <urkwtky@gmail.com>
Diffstat (limited to 'docs/ja/newbs_testing_debugging.md')
| -rw-r--r-- | docs/ja/newbs_testing_debugging.md | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/docs/ja/newbs_testing_debugging.md b/docs/ja/newbs_testing_debugging.md new file mode 100644 index 000000000..04905755c --- /dev/null +++ b/docs/ja/newbs_testing_debugging.md | |||
| @@ -0,0 +1,106 @@ | |||
| 1 | # テストとデバッグ | ||
| 2 | |||
| 3 | <!--- | ||
| 4 | original document: ed0575fc8:docs/newbs_testing_debugging.md | ||
| 5 | $ git diff ed0575fc8 HEAD docs/newbs_testing_debugging.md | ||
| 6 | --> | ||
| 7 | |||
| 8 | カスタムファームウェアをキーボードへ書き込んだら、テストする準備が整います。運が良ければ全て問題なく動作しているはずですが、もしそうでなければこのドキュメントがどこが悪いのか調べるのに役立ちます。 | ||
| 9 | |||
| 10 | ## テスト | ||
| 11 | |||
| 12 | 通常、キーボードをテストするのは非常に簡単です。全てのキーをひとつずつ押して、期待されるキーが送信されていることを確認します。キーを押したことを見逃さないためのプログラムもあります。 | ||
| 13 | |||
| 14 | メモ: これらのプログラムはQMKによって提供・承認されたものではありません。 | ||
| 15 | |||
| 16 | * [QMK Configurator](https://config.qmk.fm/#/test/) (Web Based) | ||
| 17 | * [Switch Hitter](https://web.archive.org/web/20190413233743/https://elitekeyboards.com/switchhitter.php) (Windows Only) | ||
| 18 | * [Keyboard Viewer](https://www.imore.com/how-use-keyboard-viewer-your-mac) (Mac Only) | ||
| 19 | * [Keyboard Tester](http://www.keyboardtester.com) (Web Based) | ||
| 20 | * [Keyboard Checker](http://keyboardchecker.com) (Web Based) | ||
| 21 | |||
| 22 | ## デバッグ | ||
| 23 | |||
| 24 | `rules.mk`へ`CONSOLE_ENABLE = yes`の設定をするとキーボードはデバッグ情報を出力します。デフォルトの出力は非常に限られたものですが、デバッグモードをオンにすることでデバッグ情報の量を増やすことが出来ます。キーマップの`DEBUG`キーコードを使用するか、デバッグモードを有効にする [Command](feature_command.md) 機能を使用するか、以下のコードをキーマップに追加します。 | ||
| 25 | |||
| 26 | ```c | ||
| 27 | void keyboard_post_init_user(void) { | ||
| 28 | // Customise these values to desired behaviour | ||
| 29 | debug_enable=true; | ||
| 30 | debug_matrix=true; | ||
| 31 | //debug_keyboard=true; | ||
| 32 | //debug_mouse=true; | ||
| 33 | } | ||
| 34 | ``` | ||
| 35 | |||
| 36 | ### QMK Toolboxを使ったデバッグ | ||
| 37 | |||
| 38 | 互換性のある環境では、[QMK Toolbox](https://github.com/qmk/qmk_toolbox)を使うことでキーボードからのデバッグメッセージを表示できます。 | ||
| 39 | |||
| 40 | ### hid_listenを使ったデバッグ | ||
| 41 | |||
| 42 | ターミナルベースの方法がお好みですか?PJRCが提供する[hid_listen](https://www.pjrc.com/teensy/hid_listen.html)もデバッグメッセージの表示に使用できます。ビルド済みの実行ファイルはWindows, Linux, MacOS用が用意されています。 | ||
| 43 | |||
| 44 | <!-- FIXME: Describe the debugging messages here. --> | ||
| 45 | |||
| 46 | ## 独自のデバッグメッセージを送信する | ||
| 47 | |||
| 48 | [custom code](custom_quantum_functions.md)内からデバッグメッセージを出力すると便利な場合があります。それはとても簡単です。ファイルの先頭に`print.h`のインクルードを追加します: | ||
| 49 | |||
| 50 | #include <print.h> | ||
| 51 | |||
| 52 | そのあとは、いくつかの異なったprint関数を使用することが出来ます。 | ||
| 53 | |||
| 54 | * `print("string")`: シンプルな文字列を出力します | ||
| 55 | * `uprintf("%s string", var)`: フォーマットされた文字列を出力します | ||
| 56 | * `dprint("string")` デバッグモードが有効な場合のみ、シンプルな文字列を出力します | ||
| 57 | * `dprintf("%s string", var)`: デバッグモードが有効な場合のみ、フォーマットされた文字列を出力します | ||
| 58 | |||
| 59 | ## デバッグの例 | ||
| 60 | |||
| 61 | 以下は現実世界での実際のデバッグ手法の例を集めたものです。追加情報は[Debugging/Troubleshooting QMK](faq_debug.md)を参照してください。 | ||
| 62 | |||
| 63 | ### マトリックス上のどの場所でキー押下が起こったか? | ||
| 64 | |||
| 65 | 移植する、PCBの問題を診断する場合、キー入力が正しくスキャンされているかどうかを確認することが役立つ場合があります。この手法でのロギングを有効化するには、`keymap.c`へ以下のコードを追加します。 | ||
| 66 | |||
| 67 | ```c | ||
| 68 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 69 | // コンソールが有効化されている場合、マトリックス上の位置とキー押下状態を出力します | ||
| 70 | #ifdef CONSOLE_ENABLE | ||
| 71 | uprintf("KL: kc: %u, col: %u, row: %u, pressed: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed); | ||
| 72 | #endif | ||
| 73 | return true; | ||
| 74 | } | ||
| 75 | ``` | ||
| 76 | |||
| 77 | 出力の例 | ||
| 78 | ```text | ||
| 79 | Waiting for device:....... | ||
| 80 | Listening: | ||
| 81 | KL: kc: 169, col: 0, row: 0, pressed: 1 | ||
| 82 | KL: kc: 169, col: 0, row: 0, pressed: 0 | ||
| 83 | KL: kc: 174, col: 1, row: 0, pressed: 1 | ||
| 84 | KL: kc: 174, col: 1, row: 0, pressed: 0 | ||
| 85 | KL: kc: 172, col: 2, row: 0, pressed: 1 | ||
| 86 | KL: kc: 172, col: 2, row: 0, pressed: 0 | ||
| 87 | ``` | ||
| 88 | |||
| 89 | ### キースキャンにかかる時間の測定 | ||
| 90 | |||
| 91 | パフォーマンスの問題をテストする場合、スイッチマトリックスをスキャンする頻度を知ることが役立ちます。この手法でのロギングを有効化するには`config.h`へ以下のコードを追加します。 | ||
| 92 | |||
| 93 | |||
| 94 | ```c | ||
| 95 | #define DEBUG_MATRIX_SCAN_RATE | ||
| 96 | ``` | ||
| 97 | |||
| 98 | 出力例 | ||
| 99 | ```text | ||
| 100 | > matrix scan frequency: 315 | ||
| 101 | > matrix scan frequency: 313 | ||
| 102 | > matrix scan frequency: 316 | ||
| 103 | > matrix scan frequency: 316 | ||
| 104 | > matrix scan frequency: 316 | ||
| 105 | > matrix scan frequency: 316 | ||
| 106 | ``` | ||
