Skip to content

Commit 5d23b0a

Browse files
authored
Merge pull request docker#131 from mohan08p/javadebug
IntelliJ-README doc updated
2 parents 46dc124 + 1fc5ec5 commit 5d23b0a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

developer-tools/java-debugging/IntelliJ-README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ If this the first time to use IntelliJ with Github, log into your Github account
1818

1919
On the command line clone the [docker/labs](https://github.com/docker/labs) repository
2020

21-
![](images/intelliJ_git_clone_repository.png)
21+
![](images/intelliJ_git_clone_repository1.png)
2222
Click on `Import project from external model`, select `Maven`. Click `Next`
2323

2424
![](images/intellij_github_import_maven.png)
@@ -31,7 +31,7 @@ Select the project and click `Next`
3131

3232
![](images/intellij_github_import_maven_select.png)
3333

34-
Select the JDK and click `Next`
34+
Select the JDK(set the `JDK home path`) and click `Next`
3535

3636
![](images/intellij_github_import_select_sdk.png)
3737

@@ -51,7 +51,7 @@ The application is built using Maven. To build the application click on icon on
5151

5252
![](images/intellij_maven_setup.png)
5353

54-
The `Maven Projects` window will open ont the right side. Maven goals of `clean` and `install` need to be set to build the application.
54+
The `Maven Projects` window will open on the right side. Maven goals of `clean` and `install` need to be set to build the application.
5555

5656
To set the `clean` goal, click on `Lifecycle` to display the tree of goals. Right click on `clean` and select `Create 'UserSignup [clean]'...`
5757

@@ -77,7 +77,7 @@ Then run `install`
7777

7878
![](images/intellij_maven_goal_install_run.png)
7979

80-
When the application builds you will see a success message in the log window.
80+
When the application builds, you will see a success message in the log window.
8181

8282
![](images/intellij_maven_goal_install_log.png)
8383

@@ -87,7 +87,7 @@ Open a terminal and go to the application directory. Start the application with
8787

8888
<pre>&gt; docker-compose up </pre>
8989

90-
Docker will build the images for Apache Tomcat and MySQL and start the containers. It will also mount the application directory (`./app/target/UserSignup`) as a data volume on the host system to the Tomcat webapps directory in the web server container.
90+
Docker will build the images for Apache Tomcat and MySQL then start the containers. It will also mount the application directory (`./app/target/UserSignup`) as a data volume on the host system to the Tomcat webapps directory in the web server container.
9191

9292
Open a browser window and go to:
9393
'localhost:8080'; you should see the Tomcat home page
@@ -134,13 +134,13 @@ Add a new remote configuration.
134134

135135
![](images/intellij_debug_add_remote_configuration.png)
136136

137-
In the `Run\Debug Configurations` window, set the `Name` of the configuration and in `Settings` set the port to '8000' the default Tomcat JPDA debuging port. Clcik on `OK` to save the configuration.
137+
In the `Run\Debug Configurations` window, set the `Name` of the configuration as `docker tomcat` and in `Settings` set the port to '8000' as the default Tomcat JPDA debuging port. Click on `OK` to save the configuration.
138138

139139
![](images/intellij_debug_tomcat_remote_settings.png)
140140

141141
#### Finding the Error
142142

143-
Since the problem is with the password, lets see how the password is set in the User class. In the User class, the setter for password is scrambled using [rot13](https://en.wikipedia.org/wiki/ROT13) before it is saved to the database.
143+
Since the problem is with the password, let's see how the password is set in the User class. In the User class, the setter for password is scrambled using [rot13](https://en.wikipedia.org/wiki/ROT13) before it is saved to the database.
144144

145145
![](images/intellij_debug_User_password.png)
146146

@@ -152,7 +152,7 @@ Choose the remote Tomcat debug configuration. The Debugger console will be displ
152152

153153
![](images/intellij_debug_choose_remote_tomcat.png)
154154

155-
Set a breakpoint for in the User class where the password is set.
155+
Set a breakpoint in the User class where the password is set.
156156

157157
![](images/intellij_debug_set_breakpoint_password.png)
158158

Loading

0 commit comments

Comments
 (0)