Skip to content

Commit 6f613cd

Browse files
docs(dev): update vscode debugger config with needed args to run main.go
The DEVELOPMENT.md contains an example to debug source-controller. The config was missing required arguments needed to run main.go. Signed-off-by: Jason <jagoodse@microsoft.com>
1 parent f1a8289 commit 6f613cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

DEVELOPMENT.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ make run
5858

5959
### Building the container image
6060

61-
Set the name of the container image to be created from the source code. This will be used
61+
Set the name of the container image to be created from the source code. This will be used
6262
when building, pushing and referring to the image on YAML files:
6363

6464
```sh
@@ -79,7 +79,7 @@ make docker-push
7979
```
8080

8181
Alternatively, the three steps above can be done in a single line:
82-
82+
8383
```sh
8484
IMG=registry-path/source-controller TAG=latest BUILD_ARGS=--push \
8585
make docker-build
@@ -128,7 +128,8 @@ Create a `.vscode/launch.json` file:
128128
"type": "go",
129129
"request": "launch",
130130
"mode": "auto",
131-
"program": "${workspaceFolder}/main.go"
131+
"program": "${workspaceFolder}/main.go",
132+
"args": ["--storage-adv-addr=:0", "--storage-path=${workspaceFolder}/bin/data"]
132133
}
133134
]
134135
}

0 commit comments

Comments
 (0)