--- title: "Node.js" url: https://docs.catalyst.zoho.com/ja/tools/tunneling/implementation/ide-config/nodejs/ description: "Catalyst Tunnelingは、リバースプロキシプロバイダーのTunneling URLを使用して、関数呼び出しをローカルシステムにルーティングすることで、非HTTPSおよびIntegration関数をデバッグできます。" last_updated: 2026-08-17T12:16:04Z service: All Services type: general --- # Node.js関数のデバッグ用IDE設定 このヘルプドキュメントでは、Visual Studio CodeでNode.jsの非HTTPSおよびIntegration関数のデバッグ設定を行う方法を説明します。 > **注意:** この手順は、**トンネリング済み関数をデバッグしたい**場合にのみ適用され、以下のCLIコマンドを使用している場合に該当します: ```sh catalyst functions:shell --tunnel tunnel-port-number --debug port-number ``` 関数のトンネリングのみを行い、以下のCLIコマンドを使用している場合は、IDE設定は不要です。 ```sh catalyst functions:shell --tunnel tunnel-port-number ``` このコマンドは**関数をトンネリングするのみ**で、関数のログをCatalyst CLIに出力します。 VS Code IDEのデバッガーを以下の方法で設定します: 1. デバッグが必要なすべての関数がローカルマシンにあることを確認し、該当するプロジェクトをVS Codeで開きます。 ![catalyst_tunneling_debug_vscode_node_openproject](https://catalyst-docs-development.zohostratus.in/images/catalyst-extension/tunneling/catalyst_tunneling_debug_vscode_node_openproject.webp) 2. メニューバーの**Run/Debug**ボタンをクリックし、「**create a launch.json file**」オプションをクリックして`launch.json`ファイルを作成します。 ![catalyst_tunneling_vscode_debug_create_json_high](https://catalyst-docs-development.zohostratus.in/images/catalyst-extension/tunneling/catalyst_tunneling_vscode_debug_create_json_high.webp) 設定を開始する前のlaunch.jsonファイルの表示は以下のとおりです。 ![catalyst_tunneling_vscode_debug_create_json_high](https://catalyst-docs-development.zohostratus.in/images/catalyst-extension/tunneling/catalyst_tunneling_vscode_debug_create_json_high.webp) 3. 以下のJSONスニペットをコピーし、「**configurations**」JSONキーの値として貼り付けます。 **launch.json** ```json "configurations": [{ "name": "cron_fun", // 名前は任意ですが、デバッグ時に同じ関数名にすると便利です "type": "node", "request": "attach", "address": "localhost", "port": 9001, // catalyst functions:shell --tunnel 8001 --debug 9001で指定したデバッグポート番号。他のプロセスで使用されていない任意の番号を指定できます "localRoot": "/Users/jack/tun_cli/functions/cron_fun" //Exact path where the function folder is present }], ``` 4. このファイルを保存し、必要なコード行にブレークポイントを適用して、[次の手順](https://docs.catalyst.zoho.com/ja/tools/tunneling/implementation/debug-tunneled-func/nodejs/)に進みます。 ![catalyst_tunneling_debug_vscode_node_brkpts_set](https://catalyst-docs-development.zohostratus.in/images/catalyst-extension/tunneling/catalyst_tunneling_debug_vscode_node_brkpts_set.webp)