From 619a6bb0dac8be861fa7cf9730247e2b1ea6e2f6 Mon Sep 17 00:00:00 2001 From: Mateusz Jenek Date: Tue, 10 Dec 2024 20:51:58 +0100 Subject: [PATCH] chore(README): add how to debug extension --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 59aaaa3..2e9d71a 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,23 @@ Effortlessly switch between different organizations, applications, and environme 3. Open Humanitec side and set context by right-clicking to the element of the `Organization structure` and choosing `Set in workspace` option. 4. You're ready to go! +### Debug + +To run the VSCode Extension from code in debug mode: + +1. Open this repository in Visual Studio Code. +2. Build all webview applications: + 1. Navigate to `webview/[webview application name]`. + 2. Run `npm install`. + 3. Run `npm run start` (for development) or `npm run build` (for production). +3. Build the VSCode Extension: + 1. Navigate to the root folder of the repository. + 2. Run `npm install`. + 3. Run `npm run watch` (for development) or `npm run build` (for production). +4. Select the `Run and Debug` tab from the VSCode sidebar. +5. Click the `Start Debugging` button. +6. A new VSCode window will open with the debug version of the extension installed. + ## Feedback and Issues We welcome your feedback and encourage you to report any issues you encounter. Feel free to open an issue on our [GitHub repository](https://github.com/humanitec/vscode-humanitec/issues).