Skip to content

Commit 1fb9f14

Browse files
committed
Starting the debug process via launch.json
1 parent e880d2e commit 1fb9f14

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ _Hint: always wait until this log message is shown for this pod before you start
265265

266266
### Starting the debug process via launch.json
267267

268-
Now we need a debug configuration in Visual Code. This can be done in `.vscode/launch.json`:
268+
Now we need a debug configuration in Visual Studio Code. This can be done in `.vscode/launch.json`:
269269

270270
```json
271271
{
@@ -287,15 +287,17 @@ Now we need a debug configuration in Visual Code. This can be done in `.vscode/l
287287

288288
Where `remotePath` is the path to the project path inside the pod, `port` the local port to send the debug commands to, and `host` the host to send the debug commands to.
289289

290-
You find the new configuration in Visual Code here:
290+
You can find the new configuration in Visual Studio Code here:
291291

292292
![Debug Configuration](images/debug-config.png "Where to find the debug config")
293293

294294
After starting the debug process there is a new log created by the go service:
295295

296+
```sh
296297
2020/05/28 15:38:53 I am going to start...
298+
```
297299

298-
We are ready to debug, but we have to trigger the API functions through the ingress service. Deploy it with kubectl:
300+
Finally we are ready to debug the service, but we have to trigger the API functions through the ingress service. Deploy it with kubectl:
299301

300302
```sh
301303
kubectl create -f cluster/ingress.yaml
@@ -309,13 +311,13 @@ curl http://localhost:8090/hello
309311

310312
Which should trigger the debugger:
311313

312-
![Breakpoint](images/debug-screen.png "Breakpoint in Visual Code")
314+
![Breakpoint](images/debug-screen.png "Breakpoint in Visual Studio Code")
313315

314316
Happy debugging!
315317

316318
### Cleaning up
317319

318-
If you don't need your kind cluster anymore, it can be removed with following command:
320+
If you don't need your kind cluster anymore, you can remove this with the following command:
319321

320322
```sh
321323
kind delete cluster --name=local-debug-k8s

0 commit comments

Comments
 (0)