Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Merge pull request #1 from takkii/develop
Browse files Browse the repository at this point in the history
Update.
  • Loading branch information
takkii authored Dec 11, 2024
2 parents f9f6d48 + 119c52c commit 82af78f
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
### Record issues and self-resolved issues.

Please read the documentation for the placement of configuration [files](https://github.com/takkii/PythonSettings/blob/main/doc/env.md).
105 changes: 105 additions & 0 deletions doc/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,108 @@
※ WSL2 environment

> C:\Users\user\AppData\Roaming\Sublime Text\Packages\SublimeDebugger
#### Preference(基本設定) / Packagesフォルダ

> git clone https://github.com/takkii/PythonSettings.git
#### ビルドシステム追加

> Python3.sublime-build
```json
"debugger_tasks" : [
{
"name" : "Python Debugger run task",
"type" : "python",
"settings": {
"enabled": true,
"command":
[
"C:/Users/user/scoop/apps/python/current/python.exe", "$file"
],
"selector": "source.python | text.html.python",
},
"platform": "windows",
"file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)",
"PYTHONIOENCODING": "utf-8",
},
{
"name": "Python Debug Symbols",
"type" : "python",
"settings": {
"enabled": true,
"command":
[
"C:/Users/user/scoop/apps/python/current/python.exe", "-D", "$file"
],
"selector": "source.python | text.html.python",
},
"platform": "windows",
"file_regex": "^\\s*File \"(...*?)\", line ([0-9]*)",
"PYTHONIOENCODING": "utf-8",
}
```

#### project_name.sublime-project

```json
{
"folders":
[
{
"path": ".",
}
],
"debugger_configurations":
[
{
"name": "Python Debugger: Attach remote debug.",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"justMyCode" : false,
},
{
"name": "Python Debugger: WSL2 Attach remote debug.",
"type": "python",
"request": "attach",
"connect": {
// My WSL2 IP Adress
"host": "",
"port": 5678
},
"justMyCode" : false,
},
{
"name" : "Python Debugger: Attach using process Id",
"type" : "python",
"request" : "attach",
"selector": "source.python | text.html.python",
"debugServer": 5678,
// At startup, check.
"processId": "",
"pathMappings": [{
"localRoot": "${workspaceFolder}",
"remoteRoot": "."
}],
"justMyCode" : false,
},
{
"name": "Python Debugger: Current File",
"type": "sublime",
"platform": "windows",
"request": "launch",
"selector": "source.python | text.html.python",
"program": "\\${file}",
"console": "integratedTerminal",
"justMyCode" : false,
},
],
}
```

0 comments on commit 82af78f

Please sign in to comment.