Skip to content

Commit 0095e56

Browse files
committed
add default config for VSCode debug plugin by @sambarza
1 parent 80440a0 commit 0095e56

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ venv
99

1010
.DS_Store
1111
.idea
12-
.vscode
1312

1413
# DBs
1514
long_term_memory
@@ -33,9 +32,6 @@ core/cat/plugins/*
3332
# plugins readme can stay
3433
!core/cat/plugins/how-to-write-a-plugin.md
3534

36-
# tests plugin folder
37-
plugin_folder
38-
3935
# cache embedder
4036
core/local_cache/*
4137

.vscode/launch.json

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// VScode debug setup. Thanks to @sambarza
3+
// Use IntelliSense to learn about possible attributes.
4+
// Hover to view descriptions of existing attributes.
5+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Python: Remote Attach to Cat",
10+
"type": "python",
11+
"request": "attach",
12+
"connect": {
13+
"host": "localhost",
14+
"port": 5678
15+
},
16+
"pathMappings": [
17+
{
18+
"localRoot": "${workspaceFolder}/core",
19+
"remoteRoot": "/app"
20+
}
21+
],
22+
"justMyCode": true
23+
}
24+
]
25+
}

compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
# - .env
1212
ports:
1313
- ${CCAT_CORE_PORT:-1865}:80
14+
- 5678:5678 # only for development purposes (take away in production)
1415
volumes:
1516
- ./core:/app
1617
command:

0 commit comments

Comments
 (0)