From 2d0534774aaec2da37a51fb8b6b6a47df1daad01 Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Tue, 3 Aug 2021 17:16:52 +0200
Subject: [PATCH] task #4637 - show debug output in project settings > raw data

---
 public_html/deployment/classes/project.class.php | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php
index 054c8af5..37d30111 100644
--- a/public_html/deployment/classes/project.class.php
+++ b/public_html/deployment/classes/project.class.php
@@ -3958,12 +3958,24 @@ class project extends base {
         // --------------------------------------------------
         // Tab for raw data
         // --------------------------------------------------
+        
+        $sRolloutDebug='<hr>DEBUG:<br>';
+        foreach (array_keys($this->getPhases()) as $sPhase) {
+            if ($this->isActivePhase($sPhase)){
+                $sRolloutDebug.='<strong>'.$sPhase.'</strong>'
+                . '<pre>Config = '.print_r($this->oRolloutPlugin->getConfig($sPhase), 1).'</pre>'
+                . '<pre>Commands = '.print_r($this->oRolloutPlugin->getDeployCommands($sPhase), 1).'</pre>'
+                ;
+            }
+        }
+
         $aForms["setup"]["form"]['input' . $i++] = array(
             'type' => 'markup',
             'value' => '</div>'
             
                 . '<div class="tab-pane" id="tab6">'
                 . '<br><pre>'.print_r($this->_aPrjConfig, 1).'</pre>'
+                . $sRolloutDebug
                 . '</div>'
             
             . '</div>'
-- 
GitLab