From 7304f71e8fb72d02729fa4e743e1ce8f740e1034 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Fri, 2 Mar 2018 15:17:26 -0800 Subject: [PATCH] Update Readme.md --- src/debugAdapter/Readme.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/debugAdapter/Readme.md b/src/debugAdapter/Readme.md index 41aaa3189..226a84dbb 100644 --- a/src/debugAdapter/Readme.md +++ b/src/debugAdapter/Readme.md @@ -6,7 +6,13 @@ This code runs in a seperate Node process spawned by Code when launch the 'go' t The ideal setup involves three instances of Code: -1. Open the `vscode-go` folder in one instance. Choose the `Launch Extension` debug target and hit F5 to launch a second instance. -2. In the second instance, open the Go application you'd like to test against. In that instance, create a new Go debug target pointing at the program you want to debug, and add `"debugServer": 4711` in the root of the configuration. -3. Open another instance of Code on the `vscode-go/src/debugAdapter` folder. In that instance hit F5 to launch the debug adapter in server mode under the debugger. -4. Go back to the second instance and hit F5 to debug your Go code. Debuggers from the other two Code windows are attached to the Go debug adapter and the Go language integation respectively, so you can set breakpoints, step through code and inspect state as needed. \ No newline at end of file +1. Clone this [repo](https://github.com/Microsoft/vscode-go) and then run `npm install` +``` +git clone https://github.com/Microsoft/vscode-go +cd vscode-go +npm install +``` +2. Open the `vscode-go` folder in one instance. Choose the `Launch Extension` debug target and hit F5 to launch a second instance. +3. In the second instance, open the Go application you'd like to test against. In that instance, create a new Go debug target pointing at the program you want to debug, and add `"debugServer": 4711` in the root of the configuration. +4. Open another instance of Code on the `vscode-go/src/debugAdapter` folder. In that instance hit F5 to launch the debug adapter in server mode under the debugger. +5. Go back to the second instance and hit F5 to debug your Go code. Debuggers from the other two Code windows are attached to the Go debug adapter and the Go language integation respectively, so you can set breakpoints, step through code and inspect state as needed.