Skip to content

Commit 82af78f

Browse files
authored
Merge pull request #1 from takkii/develop
Update.
2 parents f9f6d48 + 119c52c commit 82af78f

2 files changed

Lines changed: 107 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
### Record issues and self-resolved issues.
2+
3+
Please read the documentation for the placement of configuration [files](https://github.com/takkii/PythonSettings/blob/main/doc/env.md).

doc/env.md

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,108 @@
1212
1313
※ WSL2 environment
1414

15+
> C:\Users\user\AppData\Roaming\Sublime Text\Packages\SublimeDebugger
16+
17+
#### Preference(基本設定) / Packagesフォルダ
18+
19+
> git clone https://github.com/takkii/PythonSettings.git
20+
21+
#### ビルドシステム追加
22+
23+
> Python3.sublime-build
24+
25+
```json
26+
"debugger_tasks" : [
27+
{
28+
"name" : "Python Debugger run task",
29+
"type" : "python",
30+
"settings": {
31+
"enabled": true,
32+
"command":
33+
[
34+
"C:/Users/user/scoop/apps/python/current/python.exe", "$file"
35+
],
36+
"selector": "source.python | text.html.python",
37+
},
38+
"platform": "windows",
39+
"file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)",
40+
"PYTHONIOENCODING": "utf-8",
41+
},
42+
{
43+
"name": "Python Debug Symbols",
44+
"type" : "python",
45+
"settings": {
46+
"enabled": true,
47+
"command":
48+
[
49+
"C:/Users/user/scoop/apps/python/current/python.exe", "-D", "$file"
50+
],
51+
"selector": "source.python | text.html.python",
52+
},
53+
"platform": "windows",
54+
"file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)",
55+
"PYTHONIOENCODING": "utf-8",
56+
}
57+
```
58+
59+
#### project_name.sublime-project
60+
61+
```json
62+
{
63+
"folders":
64+
[
65+
{
66+
"path": ".",
67+
}
68+
],
69+
"debugger_configurations":
70+
[
71+
{
72+
"name": "Python Debugger: Attach remote debug.",
73+
"type": "python",
74+
"request": "attach",
75+
"connect": {
76+
"host": "localhost",
77+
"port": 5678
78+
},
79+
"justMyCode" : false,
80+
},
81+
{
82+
"name": "Python Debugger: WSL2 Attach remote debug.",
83+
"type": "python",
84+
"request": "attach",
85+
"connect": {
86+
// My WSL2 IP Adress
87+
"host": "",
88+
"port": 5678
89+
},
90+
"justMyCode" : false,
91+
},
92+
{
93+
"name" : "Python Debugger: Attach using process Id",
94+
"type" : "python",
95+
"request" : "attach",
96+
"selector": "source.python | text.html.python",
97+
"debugServer": 5678,
98+
// At startup, check.
99+
"processId": "",
100+
"pathMappings": [{
101+
"localRoot": "${workspaceFolder}",
102+
"remoteRoot": "."
103+
}],
104+
"justMyCode" : false,
105+
},
106+
{
107+
"name": "Python Debugger: Current File",
108+
"type": "sublime",
109+
"platform": "windows",
110+
"request": "launch",
111+
"selector": "source.python | text.html.python",
112+
"program": "\\${file}",
113+
"console": "integratedTerminal",
114+
"justMyCode" : false,
115+
},
116+
],
117+
}
118+
```
119+

0 commit comments

Comments
 (0)