diff --git a/README.md b/README.md index 4db14c44..538d466c 100644 --- a/README.md +++ b/README.md @@ -56,16 +56,23 @@ Once this is installed, go to the Code debug viewlet and select the configuratio "name": "Launch main.go", "type": "go", "request": "launch", - "program": "main.go", - "stopOnEntry": false, + "mode": "debug", + "program": ".", "env": {}, - "args": [], - "cwd": "." + "args": [] } ] } ``` +The `program` option can refer to a package folder to debug, or a file within that folder. + +The `mode` parameter can be set to: + +* `debug` to compile the contents of the program folder and launch under the debugger. [default] +* `test` to debug tests in the program folder. +* `exec` to run a pre-built binary instead of building the current code in the program folder. + ## Building and Debugging the Extension You can set up a development environment for debugging the extension during extension development. diff --git a/package.json b/package.json index a523237f..cd2bcbfc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Go", - "version": "0.6.8", + "version": "0.6.9", "publisher": "lukehoban", "description": "Go support for Visual Studio Code", "author": {