Skip to content

Commit 68b5a3d

Browse files
Tao Wangwangtao0101
Tao Wang
authored andcommitted
add debug framework
add debug framework for javascript and python almost debug version for javascript without judge transform some param type add debug framework for javascript and python add debug-default command to use default testcase catch error in entry fix a bug whe paramtype is string add debug framework for javascript and python add debug framework for javascript and python a small protocal between extension and debug session use leetcode to judge result remove unused change bug: fix parse param bug. bug: eacape string when submit to leetcode support TreeNode type support debug for python3 demo for support python special code for Node parameter parse Node parameter python debug use new framework feat: support python and update problemTypes fix: fix bug of get problem meta of .com fix: fix rebase issue fix: use new testcase fix: remove 430 558 feat: support some python problem feat: support some python problem feat: submit for python after debug add docs and demo
1 parent bedd693 commit 68b5a3d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+7339
-121
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,5 @@ out
6464

6565
# Mac
6666
.DS_Store
67+
68+
__pycache__

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"singleQuote": false,
3+
"trailingComma": "all",
4+
"printWidth": 120,
5+
"tabWidth": 4,
6+
"jsxBracketSameLine": true
7+
}

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
},
1212
"tslint.autoFixOnSave": true,
1313
"tslint.ignoreDefinitionFiles": true
14-
}
14+
}

.vscodeignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
out/test/**
44
test/**
55
src/**
6+
!src/debug/entry/**
67
**/*.map
78
.gitignore
89
.travis.yml
@@ -13,3 +14,4 @@ tslint.json
1314
ACKNOWLEDGEMENTS.md
1415
docs
1516
.github
17+
__pycache__

README.md

+33-14
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,25 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh
8585
8686
---
8787

88+
### Debug a Problem
89+
![debug](https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/gifs/debug.gif)
90+
91+
> Currently vscode-leetcode only support Python3 and Javascript language and in the future we will support all lanuages which support vscode debug protocal.
92+
93+
> Not all problems are supported(most free problems are supported) and only supported problems have debug option.
94+
95+
- Python3 debug Requirement
96+
97+
- Step 1. Install a supported version of Python3 on your system (note: that the system install of Python on macOS is not supported).
98+
99+
- Step 2. Install the Python extension for Visual Studio Code.
100+
101+
- Javasript debug Requirement
102+
103+
Nothing just vscode
104+
105+
---
106+
88107
### Editor Shortcuts
89108
<p align="center">
90109
<img src="https://raw.githubusercontent.com/jdneo/vscode-leetcode/master/docs/imgs/shortcuts.png" alt="Editor Shortcuts" />
@@ -118,20 +137,20 @@ Thanks for [@yihong0618](https://github.com/yihong0618) provided a workaround wh
118137

119138

120139
## Settings
121-
| Setting Name | Description | Default Value |
122-
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ |
123-
| `leetcode.hideSolved` | Specify to hide the solved problems or not | `false` |
124-
| `leetcode.showLocked` | Specify to show the locked problems or not. Only Premium users could open the locked problems | `false` |
125-
| `leetcode.defaultLanguage` | Specify the default language used to solve the problem. Supported languages are: `bash`, `c`, `cpp`, `csharp`, `golang`, `java`, `javascript`, `kotlin`, `mysql`, `php`, `python`,`python3`,`ruby`,`rust`, `scala`,`swift` | `N/A` |
126-
| `leetcode.useWsl` | Specify whether to use WSL or not | `false` |
127-
| `leetcode.endpoint` | Specify the active endpoint. Supported endpoints are: `leetcode`, `leetcode-cn` | `leetcode` |
128-
| `leetcode.workspaceFolder` | Specify the path of the workspace folder to store the problem files. | `""` |
129-
| `leetcode.filePath` | Specify the relative path under the workspace and the file name to save the problem files. More details can be found [here](https://github.com/jdneo/vscode-leetcode/wiki/Customize-the-Relative-Folder-and-the-File-Name-of-the-Problem-File). | |
130-
| `leetcode.enableStatusBar` | Specify whether the LeetCode status bar will be shown or not. | `true` |
131-
| `leetcode.editor.shortcuts` | Specify the customized shorcuts in editors. Supported values are: `submit`, `test`, `solution` and `description`. | `["submit, test"]` |
132-
| `leetcode.enableSideMode` | Specify whether `preview`, `solution` and `submission` tab should be grouped into the second editor column when solving a problem. | `true` |
133-
| `leetcode.nodePath` | Specify the `Node.js` executable path. for example, C:\Program Files\nodejs\node.exe | `node` |
134-
| `leetcode.showCommentDescription` | Specify whether to include the problem description in the comments | `false` |
140+
| Setting Name | Description | Default Value |
141+
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ |
142+
| `leetcode.hideSolved` | Specify to hide the solved problems or not | `false` |
143+
| `leetcode.showLocked` | Specify to show the locked problems or not. Only Premium users could open the locked problems | `false` |
144+
| `leetcode.defaultLanguage` | Specify the default language used to solve the problem. Supported languages are: `bash`, `c`, `cpp`, `csharp`, `golang`, `java`, `javascript`, `kotlin`, `mysql`, `php`, `python`,`python3`,`ruby`,`rust`, `scala`,`swift` | `N/A` |
145+
| `leetcode.useWsl` | Specify whether to use WSL or not | `false` |
146+
| `leetcode.endpoint` | Specify the active endpoint. Supported endpoints are: `leetcode`, `leetcode-cn` | `leetcode` |
147+
| `leetcode.workspaceFolder` | Specify the path of the workspace folder to store the problem files. | `""` |
148+
| `leetcode.filePath` | Specify the relative path under the workspace and the file name to save the problem files. More details can be found [here](https://github.com/jdneo/vscode-leetcode/wiki/Customize-the-Relative-Folder-and-the-File-Name-of-the-Problem-File). | |
149+
| `leetcode.enableStatusBar` | Specify whether the LeetCode status bar will be shown or not. | `true` |
150+
| `leetcode.editor.shortcuts` | Specify the customized shorcuts in editors. Supported values are: `submit`, `test`, `solution` and `description`. | `["submit, test"]` |
151+
| `leetcode.enableSideMode` | Specify whether `preview`, `solution` and `submission` tab should be grouped into the second editor column when solving a problem. | `true` |
152+
| `leetcode.nodePath` | Specify the `Node.js` executable path. for example, C:\Program Files\nodejs\node.exe | `node` |
153+
| `leetcode.showCommentDescription` | Specify whether to include the problem description in the comments | `false` |
135154

136155
## Want Help?
137156

0 commit comments

Comments
 (0)