aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patches/debug_web.sh
blob: ae06f2b9485ce3eb409b0ff9e6c0819a273ac359 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash

set -euo pipefail

source scripts/property_utils.sh

SQ_HOME=$1

port=5005
echo "enabling debug on web server, listening on port $port"
set_property sonar.web.javaAdditionalOpts "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$port" "$SQ_HOME/conf/sonar.properties"