Skip to content

Commit 64c576e

Browse files
committed
Update launch.json and settings.py for improved debugging and configuration; add path mappings and new settings for port and enable flag
1 parent 3317e08 commit 64c576e

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
{
22
"version": "0.2.0",
33
"configurations": [
4+
{
5+
"name": "Python Debugger: Remote Attach",
6+
"type": "debugpy",
7+
"request": "attach",
8+
"connect": {
9+
"host": "localhost",
10+
"port": 55550
11+
},
12+
"pathMappings": [
13+
{
14+
"localRoot": "${workspaceFolder}",
15+
"remoteRoot": "/irisdev/app"
16+
}
17+
],
18+
},
419
{
520
"name": "Python: Current File",
621
"type": "python",

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
ports:
1313
- 1972
1414
- 53795:52773
15+
- 55550:55550
1516
- 53773
1617
volumes:
1718
- ./:/irisdev/app

src/python/reddit/settings.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,23 @@
2828
"@Comment": "",
2929
"@LogTraceEvents": "true",
3030
"@Schedule": "",
31-
"Setting": {
32-
"@Target": "Host",
33-
"@Name": "%settings",
34-
"#text": "path=/tmp"
35-
}
31+
"Setting": [
32+
{
33+
"@Target": "Host",
34+
"@Name": "%settings",
35+
"#text": "path=/tmp"
36+
},
37+
{
38+
"@Target": "Host",
39+
"@Name": "enable",
40+
"#text": "1"
41+
},
42+
{
43+
"@Target": "Host",
44+
"@Name": "port",
45+
"#text": "55550"
46+
}
47+
]
3648
},
3749
{
3850
"@Name": "Python.RedditService",

0 commit comments

Comments
 (0)