Nemmere debugging: Runtime errors med linienummer
tirsdag, 29. april 2008Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/omflash.dk/public_html/wp-includes/functions-formatting.php on line 83
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method UltimateTagWarriorActions::ultimate_the_content_filter() should not be called statically in /var/www/omflash.dk/public_html/wp-includes/functions.php on line 1252
Strict Standards: Non-static method UltimateTagWarriorActions::regExEscape() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 638
Strict Standards: Non-static method UltimateTagWarriorActions::regExEscape() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 638
Strict Standards: Non-static method UltimateTagWarriorActions::regExEscape() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 639
Strict Standards: Non-static method UltimateTagWarriorActions::regExEscape() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 639
Strict Standards: Non-static method UltimateTagWarriorActions::replaceTagWithLink() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 643
Er der noget mere irriterende end at få en runtime i ActionScript 3, som bare lister at der gik noget galt i en funktion?
Eksempelvis at en unavngiven variabel ikke var defineret?
Hvis man har en stor funktion og fejlen ikke lige springer en i øjnene med det samme, så er det nemlig rent et spørgsmål om trial-and-error for at få fundet stedet hvor det går galt.
Eller, det vil sige, det er det faktisk ikke!
Man kan lige i “Publish settings” sætte et flueben i “Permit debugging”, hvilket gør at man får den fejlbesked man hele tiden har fået PLUS det præcise linienummer hvor fejlen er opstået.
Så bliver det ikke meget nemmere!
Skal ikke kunne sige om det er almen viden for alle andre, men jeg havde i hvert fald ikke lige luret det.
Fundet via denne blog.