91 lines
2.9 KiB
JSON
91 lines
2.9 KiB
JSON
{
|
|
"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"
|
|
// },
|
|
{
|
|
"name": "Docker Python Launch with venv",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/agent-py-bot/agent.py",
|
|
"console": "integratedTerminal",
|
|
"python": "/venv/bin/python",
|
|
"env": {
|
|
"PYTHONUNBUFFERED": "1"
|
|
}
|
|
},
|
|
{
|
|
"name": "start chat-server.js",
|
|
"type": "node",
|
|
"request": "launch",
|
|
// "program": "${workspaceFolder}/web/chat-server.js",
|
|
"runtimeExecutable": "npm", // Use npm to run the script
|
|
"runtimeArgs": [
|
|
"run",
|
|
"start:demo-chat" // The script to run
|
|
],
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"env": {
|
|
"NODE_ENV": "demo",
|
|
"OPENAI_API_KEY":""
|
|
},
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
]
|
|
},
|
|
{
|
|
"name": "Launch server.js",
|
|
"type": "node",
|
|
"request": "launch",
|
|
// "program": "conda activate node && ${workspaceFolder}/web/server.js",
|
|
"program": "${workspaceFolder}/web/server.js",
|
|
"console": "integratedTerminal",
|
|
"internalConsoleOptions": "neverOpen",
|
|
"env": {
|
|
"CONDA_ENV": "node", //?
|
|
"NODE_ENV": "development"
|
|
},
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
]
|
|
},
|
|
{
|
|
"name": "Python Debugger: Python File",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${file}"
|
|
},
|
|
{
|
|
"name": "py: Sol app.py",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/crypto/sol/app.py",
|
|
},
|
|
{
|
|
"name": "Python Debugger: Python File with Conda (py)",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${file}",
|
|
"console": "integratedTerminal",
|
|
//"python": "${command:python.interpreterPath}",
|
|
"python": "/config/miniconda3/envs/py/bin/python",
|
|
"presentation": {
|
|
"clear": true
|
|
},
|
|
//"preLaunchTask": "conda-activate" // Name of your pre-launch task
|
|
}
|
|
]
|
|
} |