diff --git a/docs/user/_sidebar.md b/docs/user/_sidebar.md index a5ce7ac35..f624f0a92 100644 --- a/docs/user/_sidebar.md +++ b/docs/user/_sidebar.md @@ -11,7 +11,6 @@ * [Create a Git Function](/serverless-manager/user/tutorials/01-11-create-git-function.md) * [Expose the Function](/serverless-manager/user/tutorials/01-20-expose-function.md) * [Manage Functions Through Kyma CLI](/serverless-manager/user/tutorials/01-30-manage-functions-with-kyma-cli.md) - * [Debug a Function](/serverless-manager/user/tutorials/01-40-debug-function.md) * [Log Into a Private Package Registry](/serverless-manager/user/tutorials/01-80-log-into-private-packages-registry.md) * [Set Asynchronous Communication Between Functions](/serverless-manager/user/tutorials/01-90-set-asynchronous-connection.md) * [Customize Function Traces](/serverless-manager/user/tutorials/01-100-customize-function-traces.md) diff --git a/docs/user/tutorials/01-40-debug-function.md b/docs/user/tutorials/01-40-debug-function.md deleted file mode 100644 index 99067a9a8..000000000 --- a/docs/user/tutorials/01-40-debug-function.md +++ /dev/null @@ -1,83 +0,0 @@ -# Debug a Function - -This tutorial shows how to use an external IDE to debug a Function in Kyma CLI. - -## Steps - -Learn how to debug a Function with Visual Studio Code for Node.js or Python, or GoLand: - - - -#### **Visual Studio Code** - -1. In VSC, navigate to the location of the file with the Function definition. -2. Create the `.vscode` directory. -3. In the `.vscode` directory, create the `launch.json` file with the following content: - - For Node.js: - - ```json - { - "version": "0.2.0", - "configurations": [ - { - "name": "attach", - "type": "node", - "request": "attach", - "port": 9229, - "address": "localhost", - "localRoot": "${workspaceFolder}/kubeless", - "remoteRoot": "/kubeless", - "restart": true, - "protocol": "inspector", - "timeout": 1000 - } - ] - } - ``` - - For Python: - - ```json - { - "version": "0.2.0", - "configurations": [ - { - "name": "Python: Kyma function", - "type": "python", - "request": "attach", - "pathMappings": [ - { - "localRoot": "${workspaceFolder}", - "remoteRoot": "/kubeless" - } - ], - "connect": { - "host": "localhost", - "port": 5678 - } - } - ] - } - ``` - -4. Run the Function with the `--debug` flag. - - ```bash - kyma run function --debug - ``` - -#### **GoLand** - -1. In GoLand, navigate to the location of the file with the Function definition. -2. Choose the **Add Configuration...** option. -3. Add new **Attach to Node.js/Chrome** configuration with these options: - - Host: `localhost` - - Port: `9229` -4. Run the Function with the `--debug` flag. - - ```bash - kyma run function --debug - ``` - - \ No newline at end of file