[[debug()]]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:create:functions:debug [02.12.2014 19:21] alexander.ritteren:create:functions:debug [25.08.2020 12:12] – [debug()] sophia.schauer
Line 3: Line 3:
 ''void **debug**(mixed //object//)'' ''void **debug**(mixed //object//)''
  
-The function ''debug()'' conveniently shows the project manager the content of a PHP or data variable or a placeholder in debug mode. This is particularly helpful when monitoring filters and, if necessary, for [[:en:create:filter-solving|Problem Solutions for Filters]] +The function ''debug()'' conveniently shows the project manager the content of a PHP or data variable or a placeholder in debug mode.
- +
-**Note:** The content of the respective variable is only shown if the questionnaire is started in debug mode {{:button.debug.gif?nolink|Start Questionnaire in Debug Mode}}.+
  
   * //object//   * //object//
Line 21: Line 19:
 } }
  
-// Placeholder and function set()+// Placeholders
 $random = random(1,10); $random = random(1,10);
-set($random, 'randomnumber'); 
 if ($random == 1) { if ($random == 1) {
   replace('%category%', 'employee');   replace('%category%', 'employee');
Line 29: Line 26:
   replace('%category%', 'superior');   replace('%category%', 'superior');
  
-debug('randomnumber'); 
 debug('category'); debug('category');
  
en/create/functions/debug.txt · Last modified: 25.08.2020 12:13 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki