From fa43c028f5cfc03fb5412e7f9f7c74d901e87395 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Thu, 18 Apr 2024 01:51:56 +0300 Subject: [PATCH] launch settings changed --- .vscode/launch.json | 57 ++++++++++++++++++++++++++------------------- .vscode/tasks.json | 44 +++++++++++++++++++--------------- 2 files changed, 58 insertions(+), 43 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index d1eed27..ff9d9dd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,35 +1,27 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ - { - "name": "Docker Node.js Launch", - "type": "docker", - "request": "launch", - "preLaunchTask": "docker-run: debug", - "platform": "node" - }, - { - "name": "Docker Python Launch?", - "type": "python", - "request": "launch", - "program": "${workspaceFolder}/agent-py-bot/agent.py", - "console": "integratedTerminal", - // "python": "${command:python.interpreterPath}", // Assumes Python extension is installed - // "preLaunchTask": "docker-run: python-debug", // You may need to create this task - // "env": { - // "PYTHONUNBUFFERED": "1" - // } - }, + // { + // "name": "Docker Node.js Launch", + // "type": "docker", + // "request": "launch", + // "preLaunchTask": "docker-run: debug", + // "platform": "node" + // }, + // { + // "name": "Docker Python Launch?", + // "type": "python", + // "request": "launch", + // "program": "${workspaceFolder}/agent-py-bot/agent.py", + // "console": "integratedTerminal" + // }, { "name": "Docker Python Launch with venv", "type": "debugpy", "request": "launch", "program": "${workspaceFolder}/agent-py-bot/agent.py", "console": "integratedTerminal", - "python": "/venv/bin/python", // Path to the Python interpreter in your venv + "python": "/venv/bin/python", "env": { "PYTHONUNBUFFERED": "1" } @@ -42,7 +34,24 @@ "skipFiles": [ "/**" ] - + }, + { + "name": "Python Debugger: Python File", + "type": "debugpy", + "request": "launch", + "program": "${file}" + }, + { + "name": "Python Debugger: Python File with Conda", + "type": "debugpy", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "python": "${command:python.interpreterPath}", + "presentation": { + "clear": true + }, + "preLaunchTask": "conda-activate" // Name of your pre-launch task } ] } \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index cb79000..ad95bfe 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,24 +1,24 @@ { "version": "2.0.0", "tasks": [ - { - "type": "docker-build", - "label": "docker-build", - "platform": "node", - "dockerBuild": { - "dockerfile": "${workspaceFolder}/Dockerfile", - "context": "${workspaceFolder}", - "pull": true - } - }, - { - "type": "docker-run", - "label": "docker-run: release", - "dependsOn": [ - "docker-build" - ], - "platform": "node" - }, + // { + // "type": "docker-build", + // "label": "docker-build", + // "platform": "node", + // "dockerBuild": { + // "dockerfile": "${workspaceFolder}/Dockerfile", + // "context": "${workspaceFolder}", + // "pull": true + // } + // }, + // { + // "type": "docker-run", + // "label": "docker-run: release", + // "dependsOn": [ + // "docker-build" + // ], + // "platform": "node" + // }, // { // "type": "docker-run", // "label": "docker-run: debug2", @@ -85,6 +85,12 @@ "reveal": "always", "panel": "new" }, - } + }, + { + "label": "conda-activate", + "type": "shell", + "command": "conda activate py && echo 'Activated Conda Environment (py)!'", + "problemMatcher": [] + } ] } \ No newline at end of file