You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/dev-spaces/quickstart-java.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ If you stop the `azds up` command using *Ctrl+c*, the service will continue to r
116
116
To deploy an updated version of your service, you can update any file in your project and rerun the `azds up` command. For example:
117
117
118
118
1. If `azds up` is still running, press *Ctrl+c*.
119
-
1. Update [line 16 in `src/main/java/com/ms/sample/webfrontend/Application.java`](https://github.com/Azure/dev-spaces/blob/master/samples/java/getting-started/webfrontend/src/main/java/com/ms/sample/webfrontend/Application.java#L16) to:
119
+
1. Update [line 19 in `src/main/java/com/ms/sample/webfrontend/Application.java`](https://github.com/Azure/dev-spaces/blob/master/samples/java/getting-started/webfrontend/src/main/java/com/ms/sample/webfrontend/Application.java#L19) to:
120
120
121
121
```java
122
122
return"Hello from webfrontend in Azure!";
@@ -172,17 +172,17 @@ Click *Debug* then *Stop Debugging* to stop the debugger.
172
172
173
173
Start your service in debugging mode using *Launch Java Program (AZDS)*.
174
174
175
-
Navigate back to the *Explorer* view by clicking *View* then *Explorer*. Open `src/main/java/com/ms/sample/webfrontend/Application.java` and click somewhere on line 16 to put your cursor there. To set a breakpoint hit *F9* or click *Debug* then *Toggle Breakpoint*.
175
+
Navigate back to the *Explorer* view by clicking *View* then *Explorer*. Open `src/main/java/com/ms/sample/webfrontend/Application.java` and click somewhere on line 19 to put your cursor there. To set a breakpoint hit *F9* or click *Debug* then *Toggle Breakpoint*.
176
176
177
-
Open your service in a browser and notice no message is displayed. Return to Visual Studio Code and observe line 16 is highlighted. The breakpoint you set has paused the service at line 16. To resume the service, hit *F5* or click *Debug* then *Continue*. Return to your browser and notice the message is now displayed.
177
+
Open your service in a browser and notice no message is displayed. Return to Visual Studio Code and observe line 19 is highlighted. The breakpoint you set has paused the service at line 19. To resume the service, hit *F5* or click *Debug* then *Continue*. Return to your browser and notice the message is now displayed.
178
178
179
179
While running your service in Kubernetes with a debugger attached, you have full access to debug information such as the call stack, local variables, and exception information.
180
180
181
-
Remove the breakpoint by putting your cursor on line 16 in `src/main/java/com/ms/sample/webfrontend/Application.java` and hitting *F9*.
181
+
Remove the breakpoint by putting your cursor on line 19 in `src/main/java/com/ms/sample/webfrontend/Application.java` and hitting *F9*.
182
182
183
183
## Update code from Visual Studio Code
184
184
185
-
While the service is running in debugging mode, update line 16 in `src/main/java/com/ms/sample/webfrontend/Application.java`. For example:
185
+
While the service is running in debugging mode, update line 19 in `src/main/java/com/ms/sample/webfrontend/Application.java`. For example:
186
186
```java
187
187
return "Hello from webfrontend in Azure while debugging!";
0 commit comments