あなたの世界を管理する
テストと最適化
デバッグ
4min
ZEPETOScriptは、デバッグを支援するためにMicrosoft Visual Studio CodeとJetBrains Riderツールを使用します。
📘 エディター
以下のガイドは、Visual Studio Codeを使用して準備されました。
Visual Studio Codeのインストールが完了したら、Unityエディターを開き、Unityメニュー→編集→環境設定の下にある外部ツールタブに移動します。

外部スクリプトエディターでVisual Studio Codeを選択します。

Visual Script Codeで、デバッグしたいZEPETO Scriptコード行にブレークポイントを追加します。

Unityエディターを再生し、Visual Script Codeの①実行&デバッグの下にある②デバッグ開始ボタンをクリックします。

デバッガーは、ブレークポイントが指定されたコード行でアクティブになります。

デバッグパネルの上部でZepeto Scriptが選択されている状態で、デバッグ環境タブを押します。
デバッグ環境をZepeto Multiplay Scriptに変更します。

StartDebuggingボタンをクリックしてデバッグを開始します。

デバッグコンソールパネルに表示されるZEPETOサーバーログを見て、デバッグを確認できます。
