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

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Henriksen committed Nov 20, 2016
0 parents commit 6c16e6e
Show file tree
Hide file tree
Showing 23 changed files with 1,984 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
node_modules/
out/
npm-debug.log
50 changes: 50 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "extensionHost",
"request": "launch",
"name": "Run Extension",
"preLaunchTask": "npm",
"runtimeExecutable": "${execPath}",
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/out/*.js" ]
},
{
"type": "node",
"request": "launch",
"name": "Run Server",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/src/perlDebug.ts",
"args": [ "--server=4711" ],
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/out/*.js" ]
},
{
"type": "node",
"request": "launch",
"name": "Run Tests",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"args": [
"-u", "tdd",
"--timeout", "999999",
"--colors",
"./out/tests/"
],
"sourceMaps": true,
"outDir": "${workspaceRoot}/out",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "perl",
"request": "launch",
"name": "Run Perl Debugger",
"program": "${workspaceRoot}/${command.AskForProgramName}",
"stopOnEntry": true
}
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Place your settings in this file to overwrite default and user settings.FALSE
{
"javascript.validate.enable": false,
"typescript.tsdk": "node_modules/typescript/lib",
"files.trimTrailingWhitespace": true,
"eslint.enable": false,
"editor.insertSpaces": false
}
11 changes: 11 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"isWatching": true,
"showOutput": "always",
"args": [
"run", "watch"
],
"problemMatcher": "$tsc-watch"
}
10 changes: 10 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.vscode/**/*
.gitignore
.travis.yml
appveyor.yml
src/**/*
out/tests/**/*
node_modules/**/*
**/*.js.map
!node_modules/vscode-debugprotocol/**/*
!node_modules/vscode-debugadapter/**/*
37 changes: 37 additions & 0 deletions ThirdPartyNotices.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
Do Not Translate or Localize

This project incorporates material from the project(s) listed below (collectively, “Third Party Code”).
Microsoft is not the original author of the Third Party Code. The original copyright notice and license
under which Microsoft received such Third Party Code are set out below. This Third Party Code is licensed
to you under their original license terms set forth below. Microsoft reserves all other rights not
expressly granted, whether by implication, estoppel or otherwise.


1. DefinitelyTyped version 0.0.1 (https://github.com/borisyankov/DefinitelyTyped)


%% DefinitelyTyped NOTICES AND INFORMATION BEGIN HERE
=========================================
This project is licensed under the MIT license.
Copyrights are respective of each contributor listed at the beginning of each definition file.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
=========================================
END OF DefinitelyTyped NOTICES AND INFORMATION
Binary file added images/vscode-perl-debugger.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"name": "perl-debug",
"displayName": "Perl Debug",
"version": "0.0.1",
"publisher": "raix",
"description": "Perl debug adapter for VS Code.",
"author": {
"name": "Morten Henriksen",
"email": "[email protected]"
},
"engines": {
"vscode": "^1.1.0",
"node": "^5.10.0"
},
"icon": "images/perl-debug-icon.svg",
"categories": [
"Debuggers"
],
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/raix/vscode-perl-debug.git"
},
"bugs": {
"url": "https://github.com/raix/vscode-perl-debug/issues"
},
"dependencies": {
"vscode-debugprotocol": "^1.15.0-pre.1",
"vscode-debugadapter": "^1.15.0-pre.1"
},
"devDependencies": {
"@types/es6-promise": "0.0.32",
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.39",
"mocha": "^3.1.2",
"typescript": "^2.0.10",
"vscode": "^0.11.18",
"vscode-debugadapter-testsupport": "^1.14.0"
},
"scripts": {
"prepublish": "node ./node_modules/typescript/bin/tsc -p ./src",
"compile": "node ./node_modules/typescript/bin/tsc -p ./src",
"watch": "node ./node_modules/typescript/bin/tsc -w -p ./src",
"test": "node ./node_modules/mocha/bin/mocha -u tdd ./out/tests/",
"test:w": "mocha -u tdd ./out/tests/ --watch",
"postinstall": "node ./node_modules/vscode/bin/install",
"test2": "cd src/tests && electron-mocha ./test.js"
},
"main": "./out/extension",
"activationEvents": [
"onCommand:extension.perl-debug.getProgramName",
"onCommand:extension.perl-debug.provideInitialConfigurations"
],
"contributes": {
"breakpoints": [
{
"language": "perl"
}
],
"debuggers": [
{
"type": "perl",
"label": "Perl Debug",
"program": "./out/perlDebug.js",
"runtime": "node",
"variables": {
"AskForProgramName": "extension.perl-debug.getProgramName"
},
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to perl file.",
"default": "${workspaceRoot}/${command.AskForProgramName}"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
}
}
}
},
"initialConfigurations": "extension.perl-debug.provideInitialConfigurations"
}
]
}
}
19 changes: 19 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# VS Code Perl Debug

A minimalistic debugger for perl in vs code.

![Perl Debug](vscode-perl-debugger.gif)

### Credits

Credits goes to for making an awesome editor and a nice getting started mock debugger: [https://github.com/Microsoft/vscode-mock-debug.git](https://github.com/Microsoft/vscode-mock-debug.git)

### Disclaimer

I'm in no way a perl expert - if you find bugs in the vs / perl debugger integration or want to contribute with code please don't hesitate.



Kind regards

Morten
Loading

0 comments on commit 6c16e6e

Please sign in to comment.