Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2025-09-18 15:33:51 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-09-18 15:33:51 +0300
commit0ce58a095aeb9dafee8c93851c609688d5187000 (patch)
treee23e489d82895a34bc625b1c3543429b190806c2 /.vscode/launch.json
parent59ea2645db827335a0689d2fb7aeeef4e52af52b (diff)
vscode: Debug for developer
Diffstat (limited to '.vscode/launch.json')
-rw-r--r--.vscode/launch.json35
1 files changed, 35 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 00000000..8a969702
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,35 @@
+{
+ "$schema": "vscode://schemas/launch",
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "Run 3x-ui (Debug)",
+ "type": "go",
+ "request": "launch",
+ "mode": "auto",
+ "program": "${workspaceFolder}",
+ "cwd": "${workspaceFolder}",
+ "env": {
+ "XUI_DEBUG": "true"
+ },
+ "console": "integratedTerminal"
+ },
+ {
+ "name": "Run 3x-ui (Debug, custom env)",
+ "type": "go",
+ "request": "launch",
+ "mode": "auto",
+ "program": "${workspaceFolder}",
+ "cwd": "${workspaceFolder}",
+ "env": {
+ // Set to true to serve assets/templates directly from disk for development
+ "XUI_DEBUG": "true",
+ // Uncomment to override DB folder location (by default uses working dir on Windows when debug)
+ // "XUI_DB_FOLDER": "${workspaceFolder}",
+ // Example: override log level (debug|info|notice|warn|error)
+ // "XUI_LOG_LEVEL": "debug"
+ },
+ "console": "integratedTerminal"
+ }
+ ]
+}