Since I’ve already gone through that case, maybe I’ll describe how I debug applications.
- Clone flowable repository
- git checkout flowable-6.3.1
- Add -agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n to i.e. flowable-modeler-app service in docker compose. Should look similar to this one:
flowable-modeler-app:
image: flowable/flowable-modeler
container_name: flowable-modeler
depends_on:
- flowable-db
- flowable-idm-app
- flowable-task-app
environment:
- SERVER_PORT=8888
- SPRING_DATASOURCE_DRIVER-CLASS-NAME=org.postgresql.Driver
- SPRING_DATASOURCE_URL=jdbc:postgresql://flowable-db:5432/flowable
- SPRING_DATASOURCE_USERNAME=flowable
- SPRING_DATASOURCE_PASSWORD=flowable
- FLOWABLE_COMMON_APP_IDM-URL=http://flowable-idm-app:8080/flowable-idm
- FLOWABLE_COMMON_APP_IDM-REDIRECT-URL=http://localhost:8080/flowable-idm
- FLOWABLE_COMMON_APP_IDM-ADMIN.USER=admin
- FLOWABLE_COMMON_APP_IDM-ADMIN.PASSWORD=kZ2uekjn4u
- FLOWABLE_MODELER_APP_DEPLOYMENT-API-URL=http://flowable-task-app:9999/flowable-task/app-api
ports:
- 8888:8888
- 8001:8001
entrypoint: [“./wait-for-something.sh”, “flowable-db”, “5432”, “PostgreSQL”, “java” ,“-agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n”, “-jar”, “app.war”]
Note there are still dots in env properties (LOWABLE_COMMON_APP_IDM-ADMIN.USER, LOWABLE_COMMON_APP_IDM-ADMIN.USER). Do not copy whole service configuration ![]()
- Run Remote debug from IDE (Intellij/Eclipse). Like this one:
http://i.imgur.com/mpDeQbg.png