mercedes-benz / sechub

SecHub provides a central API to test software with different security tools.
https://mercedes-benz.github.io/sechub/
MIT License
259 stars 58 forks source link

Add missing remote debugging capability for other wrappers #3262

Open de-jcup opened 3 days ago

de-jcup commented 3 days ago

Situation

With #3261 we added remote debugging parameter and implemented it in PDS solution for prepare

Wanted

The script call from prepare shall be adopted to

Solution

It should be enough to handle this as done for prepare.sh:

if [[ "$PDS_WRAPPER_REMOTE_DEBUGGING_ENABLED" = "true" ]]; then
    options="$options -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000"
fi

java -jar $options "$pathToJar"