aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/patches/debug_web.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/patches/debug_web.sh')
-rwxr-xr-xscripts/patches/debug_web.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/patches/debug_web.sh b/scripts/patches/debug_web.sh
new file mode 100755
index 00000000000..831a6dd5b17
--- /dev/null
+++ b/scripts/patches/debug_web.sh
@@ -0,0 +1,8 @@
+set -euo pipefail
+
+source scripts/property_utils.sh
+
+SQ_HOME=$1
+
+echo "enabling debug on web server, listening on port 5005"
+set_property sonar.web.javaAdditionalOpts -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 $SQ_HOME/conf/sonar.properties