Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a authored Mar 2, 2018
1 parent 41c5b3b commit 7304f71
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/debugAdapter/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
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.

0 comments on commit 7304f71

Please sign in to comment.