Skip to content

Commit b50dca4

Browse files
committed
Initial Commit
0 parents  commit b50dca4

File tree

21 files changed

+6764
-0
lines changed

21 files changed

+6764
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules/
3+
out/

.vscode/launch.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"runtimeExecutable": "${execPath}",
9+
"args": [
10+
"--extensionDevelopmentPath=${workspaceRoot}"
11+
],
12+
"sourceMaps": true,
13+
"outDir": "./out"
14+
},
15+
{
16+
"name": "Debug adapter",
17+
"type": "node",
18+
"request": "launch",
19+
"runtimeArgs": [
20+
"--harmony"
21+
],
22+
"program": "./src/phpDebug.ts",
23+
"stopOnEntry": false,
24+
"args": [
25+
"--server=4711"
26+
],
27+
"sourceMaps": true,
28+
"outDir": "./out"
29+
},
30+
{
31+
"name": "Run Tests",
32+
"type": "node",
33+
"request": "launch",
34+
"program": "node_modules/mocha/bin/_mocha",
35+
"args": [
36+
"./out/tests",
37+
"--timeout",
38+
"999999",
39+
"--colors"
40+
],
41+
"sourceMaps": true,
42+
"outDir": "./out"
43+
}
44+
]
45+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"javascript.validate.enable": false,
4+
"files.trimTrailingWhitespace": true,
5+
"eslint.enable": false,
6+
"editor.insertSpaces": true,
7+
"editor.tabSize": 4
8+
}

.vscode/tasks.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"version": "0.1.0",
3+
"command": "npm",
4+
"isShellCommand": true,
5+
"args": ["run"],
6+
"showOutput": "silent",
7+
"tasks": [
8+
{
9+
"taskName": "watch",
10+
"isWatching": true,
11+
"problemMatcher": "$tsc-watch"
12+
},
13+
{
14+
"taskName": "compile",
15+
"problemMatcher": "$tsc"
16+
}
17+
]
18+
}

.vscodeignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.vscode/**/*
2+
.gitignore
3+
src/**/*
4+
out/tests/**/*
5+
node_modules/**/*
6+
**/*.js.map

LICENSE.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Copyright (c) Microsoft Corporation
2+
3+
All rights reserved.
4+
5+
MIT License
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

package.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"name": "mock-debug",
3+
"displayName": "Mock Debug",
4+
"version": "0.10.18",
5+
"publisher": "andreweinand",
6+
"description": "Starter extension for developing debug adapters for VS Code.",
7+
"author": {
8+
"name": "Microsoft Corporation"
9+
},
10+
"engines": {
11+
"vscode": "^0.10.1"
12+
},
13+
"icon": "images/mock-debug-icon.svg",
14+
"categories": [
15+
"Debuggers"
16+
],
17+
"private": true,
18+
"repository": {
19+
"type": "git",
20+
"url": "https://github.com/Microsoft/vscode-mock-debug.git"
21+
},
22+
"bugs": {
23+
"url": "https://github.com/Microsoft/vscode-mock-debug/issues"
24+
},
25+
"dependencies": {
26+
"iconv-lite": "^0.4.13",
27+
"moment": "^2.10.6",
28+
"vscode-debugadapter": "^1.0.3",
29+
"vscode-debugprotocol": "^1.0.1",
30+
"xml2js": "^0.4.15"
31+
},
32+
"devDependencies": {
33+
"typescript": "^1.6.2",
34+
"mocha": "*"
35+
},
36+
"scripts": {
37+
"compile": "tsc -p ./src",
38+
"watch": "tsc -w -p ./src",
39+
"test": "mocha out/tests"
40+
},
41+
"contributes": {
42+
"debuggers": [
43+
{
44+
"type": "php",
45+
"label": "PHP XDebug",
46+
"enableBreakpointsFor": {
47+
"languageIds": [
48+
"php"
49+
]
50+
},
51+
"program": "./out/mockDebug.js",
52+
"runtime": "node",
53+
"configurationAttributes": {
54+
"launch": {
55+
"required": [],
56+
"properties": {
57+
"stopOnEntry": {
58+
"type": "boolean",
59+
"description": "Automatically stop after launch.",
60+
"default": true
61+
},
62+
"port": {
63+
"type": "number",
64+
"description": "Port on which to listen for XDebug",
65+
"default": 9000
66+
}
67+
}
68+
}
69+
},
70+
"initialConfigurations": [
71+
{
72+
"name": "Listen for XDebug",
73+
"type": "php",
74+
"request": "launch",
75+
"port": 9000
76+
}
77+
]
78+
}
79+
]
80+
}
81+
}

0 commit comments

Comments
 (0)