diff --git a/img/addConfiguration.gif b/img/addConfiguration.gif new file mode 100644 index 0000000..755b1fa Binary files /dev/null and b/img/addConfiguration.gif differ diff --git a/package.json b/package.json index cb57608..2b8cd68 100644 --- a/package.json +++ b/package.json @@ -234,7 +234,51 @@ } } } - } + }, + "configurationSnippets": [ + { + "label": "JANUS Debugger: Launch", + "description": "Default configuration to connect with a JANUS server", + "body": { + "name": "Launch Script on Server", + "request": "launch", + "type": "janus", + "script": "", + "username": "", + "password": "${command:extension.vscode-janus-debug.askForPassword}", + "principal": "", + "host": "localhost", + "applicationPort": 11000, + "debuggerPort": 8089, + "currentConfiguration": true, + "stopOnEntry": true, + "log": { + "fileName": "${workspaceRoot}/vscode-janus-debug-launch.log", + "logLevel": { + "default": "Debug" + } + }, + "timeout": 6000 + } + }, + { + "label": "JANUS Debugger: Attach", + "description": "Default configuration to attach to a JANUS server", + "body": { + "name": "Attach to Server", + "request": "attach", + "type": "janus", + "host": "localhost", + "debuggerPort": 8089, + "log": { + "fileName": "${workspaceRoot}/vscode-janus-debug-attach.log", + "logLevel": { + "default": "Debug" + } + } + } + } + ] } ], "configuration": { diff --git a/src/config.ts b/src/config.ts index 1c5bf39..53fcf54 100644 --- a/src/config.ts +++ b/src/config.ts @@ -58,7 +58,7 @@ const initialConfigurations = [ password: commandAskForPassword, principal: '', host: 'localhost', - applicationPort: 10000, + applicationPort: 11000, debuggerPort: 8089, currentConfiguration: true, stopOnEntry: true,