List Demo old - rsanchez-wsu/jfiles GitHub Wiki

  1. Open Up the JFilesServer, JFilesServerThread, JFilesClient and JFIlesClientThread Java Files.
  2. Switch eclipse to debug mode. Debug
  3. Place a breakpoint at the writeUTF line in the send method of the JFilesServerThread Class. Break1
  4. Place a breakpoint at the beginning of the handle method in JFiles Client Break2
  5. Run JFilesServer in Debug mode. RunDebug
  6. Run JFilesClient in Debug mode. Note there are now two consoles open and you can switch between them. Switch Consoles
  7. Type LIST in the Console and hit enter. List
  8. The program will break on the breakpoint in the send method. If press continue the program will cycle around to the to this break point repeatedly cycling through the contents of the user directory. Note that the other breakpoint is not reached and nothing is sent to the console of the client. This appears to be an error. breakpoint