[SOLVED]Debugging... traces?
Posted: 01 August 2015, 22:12
HELLO,
Well I've not used studio for a long time, and I don't remember how to log my messages in PHP.
I've tried theses:
self::trace("!TRACE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
self::debug("!DEBUG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
self::warn ("!WARN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
self::error("!ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
I don't know where is the output!!! I see nothing in the log window.
The only way I have a message , it's when i use
throw new feException ("MYMESSAGE");
or when I Use print_r("!PRINTR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
this way i see the message:
Erreur inattendue: Wrong formatted data from BGA gameserver 1 (method: createGame): !PRINTR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!{"status":1,"data":true}
same thing with a variable:
print_r($sort);
Erreur inattendue: Wrong formatted data from BGA gameserver 1 (method: createGame): Array ( [0] => 1_1 [1] => 2_1 [2] => 3_1 [3] => 4_1 [4] => 5_1 [5] => 6_1 [6] => 7_1 [7] => 1_2 [8] => 2_2 [9] => 3_2 [10] => 4_2 [11] => 5_2 [12] => 6_2 [13] => 7_2 [14] => 1_4 [15] => 2_4 [16] => 3_4 [17] => 4_4 [18] => 5_4 [19] => 6_4 [20] => 7_4 ) {"status":1,"data":true}
... so i've got this solution, but seeing "Practical debugging" in Studio Info, it seems not to be the right way to do it?
Well I've not used studio for a long time, and I don't remember how to log my messages in PHP.
I've tried theses:
self::trace("!TRACE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
self::debug("!DEBUG!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
self::warn ("!WARN !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
self::error("!ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
I don't know where is the output!!! I see nothing in the log window.
The only way I have a message , it's when i use
throw new feException ("MYMESSAGE");
or when I Use print_r("!PRINTR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
this way i see the message:
Erreur inattendue: Wrong formatted data from BGA gameserver 1 (method: createGame): !PRINTR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!{"status":1,"data":true}
same thing with a variable:
print_r($sort);
Erreur inattendue: Wrong formatted data from BGA gameserver 1 (method: createGame): Array ( [0] => 1_1 [1] => 2_1 [2] => 3_1 [3] => 4_1 [4] => 5_1 [5] => 6_1 [6] => 7_1 [7] => 1_2 [8] => 2_2 [9] => 3_2 [10] => 4_2 [11] => 5_2 [12] => 6_2 [13] => 7_2 [14] => 1_4 [15] => 2_4 [16] => 3_4 [17] => 4_4 [18] => 5_4 [19] => 6_4 [20] => 7_4 ) {"status":1,"data":true}
... so i've got this solution, but seeing "Practical debugging" in Studio Info, it seems not to be the right way to do it?