このページでは

言語クライアントの確認

Qt Creator は、言語サーバーにメッセージ(リクエスト)を送信し、その言語サーバーがリクエストを処理できる場合、要求された情報を含む応答を受け取ります。Qt Creator と言語サーバー間の通信を確認し、サーバーの機能を確認するには、Tools > Debug Qt Creator >Inspect Language Clients を選択します。

「言語クライアントインスペクタ」ダイアログ

Language Server 」で稼働中の言語サーバーを選択します。表示される情報は、言語サーバーによって異なります。

汎用言語サーバーの場合、サーバーの起動タイミングは、言語サーバーの設定にあるStartup behavior 」フィールドの値によって決まります。言語サーバーを再起動するには、エディタのツールバーで「言語」クライアントメニュー 」を選択し、次に「Restart 」を選択します。

Log は、選択したログエントリに関する追加情報を表示します。Client Message およびServer Message の「Content length 」と「MIME type 」を確認できるほか、Qt Creator と言語サーバー間で送受信されたデータを検査することもできます。

古いエントリを削除するには、「Clear 」を選択します。

言語サーバーの機能を確認する

Capabilities 」では、言語サーバーが特定のタスクを実行できるかどうかを確認できます。このダイアログでは、サーバーの機能を変更することはできません。

その機能の「Name 」、「Value 」、および「Type 」を確認できます。

「Language Client Inspector」ダイアログの [機能] タブ

一部の言語サーバーについては、Dynamic Capabilities に利用可能なMethods およびOptions が一覧表示されます。

メモリ使用量の確認

clangd サーバーの場合、Memory Usage で特定のコンポーネントが使用しているメモリの合計量を確認できます。

「Language Client Inspector」ダイアログの「メモリ使用量」タブ

「手順:言語サーバーの管理」および「言語サーバーの管理も参照してください

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.