- JDK installed and
JAVA_HOME
env variable set - Maven installed
- Visual Studio Code installed, either via installer or portable
- Clone or download primefaces-test
- Start Visual Studio Code and File > Open Folder... >
primefaces-test
- Click Extensions (
Ctrl+Shift+X
) and search "@recommended" - Click Install Workspace Recommended Extensions
- Reload Visual Studio Code as needed
- Click Explorer (
Ctrl+Shift+E
) - Expand Maven > primefaces-test > Plugins > jetty
- Click Run on the "run" goal
- Open Command Pallette (
Ctrl+Shift+P
) - Run "Tasks: Run Build Task" (
Ctrl+Shift+B
is a shortcut for this)
- 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) - Run project (see above)
- Click Run and Debug (
Ctrl+Shift+D
) - Click Start Debugging (
F5
)