Answer the question
In order to leave comments, you need to log in
Is there an editor with dev code capability?
There is an editor that can save (or similar actions) 2 types of code.
The first is general, and the second is general + additional.
The bottom line is that I want to make 2 versions of one script and in one of them each step will be logged.
For example:
*$log = 'Приветствие';
echo 'Hello, world!';
*var_dump(
* $log
*);
Answer the question
In order to leave comments, you need to log in
define ("debug", true);
function debug($var, $comment){
if(debug){
echo "// $comment //\n";
// do debug stuff
}
return;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question