Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.28 KB

vscode-quickstart.md

File metadata and controls

33 lines (24 loc) · 1.28 KB

Quickstart guide for running in Visual Studio Code

Prerequisites

  1. JDK installed and JAVA_HOME env variable set
  2. Maven installed
  3. Visual Studio Code installed, either via installer or portable

Setup

  1. Clone or download primefaces-test
  2. Start Visual Studio Code and File > Open Folder... > primefaces-test
  3. Click Extensions (Ctrl+Shift+X) and search "@recommended"
  4. Click Install Workspace Recommended Extensions
  5. Reload Visual Studio Code as needed

Running primefaces-test project

Method #1

  1. Click Explorer (Ctrl+Shift+E)
  2. Expand Maven > primefaces-test > Plugins > jetty
  3. Click Run on the "run" goal

Method #2

  1. Open Command Pallette (Ctrl+Shift+P)
  2. Run "Tasks: Run Build Task" (Ctrl+Shift+B is a shortcut for this)

Debugging

  1. Set MAVEN_OPTS env variable to "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -Djava.compiler=NONE" (this allows the debugger to attach to running server)
  2. Run project (see above)
  3. Click Run and Debug (Ctrl+Shift+D)
  4. Click Start Debugging (F5)