René's URL Explorer Experiment


Title: Debugging - Multi Theft Auto: Wiki

Open Graph Title: Debugging

X Title: Debugging

Description: When scripting you will often come across problems that are not immediately apparent. This page tries to point out some basic strategies to locate the error.

Open Graph Description: When scripting you will often come across problems that are not immediately apparent. This page tries to point out some basic strategies to locate the error.

X Description: When scripting you will often come across problems that are not immediately apparent. This page tries to point out some basic strategies to locate the error.

Opengraph URL: https://wiki.multitheftauto.com/wiki/Debugging

X: @MTAQA

Generator: MediaWiki 1.46.3

direct link

Domain: wiki.multitheftauto.com


Hey, it has json ld scripts:
{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/wiki.multitheftauto.com\/#organization","name":"Multi Theft Auto: Wiki","url":"https:\/\/wiki.multitheftauto.com\/","description":"Community documentation wiki for Multi Theft Auto: San Andreas (MTA:SA).","sameAs":["https:\/\/multitheftauto.com\/","https:\/\/forum.multitheftauto.com\/","https:\/\/community.multitheftauto.com\/","https:\/\/discord.com\/invite\/mtasa","https:\/\/www.youtube.com\/user\/mtaqa","https:\/\/www.facebook.com\/multitheftauto","https:\/\/twitter.com\/mtaqa"],"logo":{"@type":"ImageObject","url":"https:\/\/wiki.multitheftauto.com\/images\/meta\/icon-512.png","width":512,"height":512}},{"@type":"WebSite","@id":"https:\/\/wiki.multitheftauto.com\/#website","url":"https:\/\/wiki.multitheftauto.com\/","name":"Multi Theft Auto: Wiki","alternateName":"MTA Wiki","inLanguage":"en","publisher":{"@id":"https:\/\/wiki.multitheftauto.com\/#organization"}},{"@type":"Article","@id":"https:\/\/wiki.multitheftauto.com\/wiki\/Debugging#article","headline":"Debugging","url":"https:\/\/wiki.multitheftauto.com\/wiki\/Debugging","inLanguage":"en","author":{"@id":"https:\/\/wiki.multitheftauto.com\/#organization"},"isPartOf":{"@id":"https:\/\/wiki.multitheftauto.com\/#website"},"mainEntityOfPage":{"@id":"https:\/\/wiki.multitheftauto.com\/wiki\/Debugging#webpage"},"publisher":{"@id":"https:\/\/wiki.multitheftauto.com\/#organization"},"license":"https:\/\/www.gnu.org\/licenses\/fdl-1.3.html","isAccessibleForFree":true,"datePublished":"2017-04-15T13:59:47Z","dateModified":"2022-07-04T08:56:19Z","articleSection":["Scripting Concepts","Tutorials"]},{"@type":"WebPage","@id":"https:\/\/wiki.multitheftauto.com\/wiki\/Debugging#webpage","name":"Debugging","url":"https:\/\/wiki.multitheftauto.com\/wiki\/Debugging","inLanguage":"en","isPartOf":{"@id":"https:\/\/wiki.multitheftauto.com\/#website"},"mainEntity":{"@id":"https:\/\/wiki.multitheftauto.com\/wiki\/Debugging#article"},"datePublished":"2017-04-15T13:59:47Z","dateModified":"2022-07-04T08:56:19Z"}]}

format-detectiontelephone=no
og:site_nameMulti Theft Auto: Wiki
og:localeen_US
og:typearticle
og:imagehttps://wiki.multitheftauto.com/images/meta/og-wiki.png
og:image:typeimage/png
og:image:width1200
og:image:height630
og:image:altDebugging
article:published_time2017-04-15T13:59:47Z
article:modified_time2022-07-04T08:56:19Z
twitter:cardsummary_large_image
twitter:imagehttps://wiki.multitheftauto.com/images/meta/og-wiki.png
twitter:image:altDebugging
theme-color#ffffff

Links:

Jump to navigationhttps://wiki.multitheftauto.com/wiki/Debugging#mw-head
Jump to searchhttps://wiki.multitheftauto.com/wiki/Debugging#searchInput
1 Debug consolehttps://wiki.multitheftauto.com/wiki/Debugging#Debug_console
1.1 Examplehttps://wiki.multitheftauto.com/wiki/Debugging#Example
1.2 Clears the debug viewhttps://wiki.multitheftauto.com/wiki/Debugging#Clears_the_debug_view
2 Server & client debug logginghttps://wiki.multitheftauto.com/wiki/Debugging#Server_&_client_debug_logging
2.1 Serverhttps://wiki.multitheftauto.com/wiki/Debugging#Server
2.2 Clienthttps://wiki.multitheftauto.com/wiki/Debugging#Client
3 Debug strategieshttps://wiki.multitheftauto.com/wiki/Debugging#Debug_strategies
3.1 Useful functionshttps://wiki.multitheftauto.com/wiki/Debugging#Useful_functions
3.2 Add debugmessages to check if, when or how often a section of code is executedhttps://wiki.multitheftauto.com/wiki/Debugging#Add_debugmessages_to_check_if,_when_or_how_often_a_section_of_code_is_executed
3.3 Add debugmessages to check the value of a variablehttps://wiki.multitheftauto.com/wiki/Debugging#Add_debugmessages_to_check_the_value_of_a_variable
4 Examplehttps://wiki.multitheftauto.com/wiki/Debugging#Example_2
4.1 A more inconspicuous errorhttps://wiki.multitheftauto.com/wiki/Debugging#A_more_inconspicuous_error
5 Debugging Performance Issueshttps://wiki.multitheftauto.com/wiki/Debugging#Debugging_Performance_Issues
5.1 Examples of scripts that could cause performance problemshttps://wiki.multitheftauto.com/wiki/Debugging#Examples_of_scripts_that_could_cause_performance_problems
outputChatBoxhttps://wiki.multitheftauto.com/wiki/OutputChatBox
outputChatboxhttps://wiki.multitheftauto.com/wiki/OutputChatbox?action=edit&redlink=1
outputDebugStringhttps://wiki.multitheftauto.com/wiki/OutputDebugString
outputChatBoxhttps://wiki.multitheftauto.com/wiki/OutputChatBox
tostring()http://www.lua.org/manual/5.1/manual.html#pdf-tostring
inspecthttps://wiki.multitheftauto.com/wiki/Inspect
iprinthttps://wiki.multitheftauto.com/wiki/Iprint
getElementTypehttps://wiki.multitheftauto.com/wiki/GetElementType
isElementhttps://wiki.multitheftauto.com/wiki/IsElement
createMarkerhttps://wiki.multitheftauto.com/wiki/CreateMarker
createMarkerhttps://wiki.multitheftauto.com/wiki/CreateMarker
tostring()http://www.lua.org/manual/5.1/manual.html#pdf-tostring
collision shapehttps://wiki.multitheftauto.com/wiki/Colshape
isTimerhttps://wiki.multitheftauto.com/wiki/IsTimer
performancebrowserhttps://wiki.multitheftauto.com/wiki/Resource:Performancebrowser
GitHub repositoryhttps://github.com/multitheftauto/mtasa-resources
http://serverIPHere:serverHTTPPortHere/performancebrowser/http://serverIPHere:serverHTTPPortHere/performancebrowser/
http://127.0.0.1:22005/performancebrowser/http://127.0.0.1:22005/performancebrowser/
https://wiki.multitheftauto.com/wiki/Debugging?oldid=75222https://wiki.multitheftauto.com/wiki/Debugging?oldid=75222
Categorieshttps://wiki.multitheftauto.com/wiki/Special:Categories
Scripting Conceptshttps://wiki.multitheftauto.com/wiki/Category:Scripting_Concepts
Tutorialshttps://wiki.multitheftauto.com/wiki/Category:Tutorials
Create accounthttps://wiki.multitheftauto.com/wiki/Special:CreateAccount?returnto=Debugging
Log inhttps://wiki.multitheftauto.com/wiki/Special:UserLogin?returnto=Debugging
Pagehttps://wiki.multitheftauto.com/wiki/Debugging
Discussionhttps://wiki.multitheftauto.com/wiki/Talk:Debugging
Readhttps://wiki.multitheftauto.com/wiki/Debugging
View sourcehttps://wiki.multitheftauto.com/wiki/Debugging?action=edit
View historyhttps://wiki.multitheftauto.com/wiki/Debugging?action=history
https://wiki.multitheftauto.com/wiki/Main_Page
Homehttps://wiki.multitheftauto.com/wiki/Main_Page
How you can helphttps://wiki.multitheftauto.com/wiki/How_you_can_help
Recent changeshttps://wiki.multitheftauto.com/wiki/Special:RecentChanges
Random pagehttps://wiki.multitheftauto.com/wiki/Special:Random
Client Functionshttps://wiki.multitheftauto.com/wiki/Client_Scripting_Functions
Client Eventshttps://wiki.multitheftauto.com/wiki/Client_Scripting_Events
Server Functionshttps://wiki.multitheftauto.com/wiki/Server_Scripting_Functions
Server Eventshttps://wiki.multitheftauto.com/wiki/Server_Scripting_Events
Shared Functionshttps://wiki.multitheftauto.com/wiki/Shared_Scripting_Functions
Useful Functionshttps://wiki.multitheftauto.com/wiki/Useful_Functions
MTA Classeshttps://wiki.multitheftauto.com/wiki/MTA_Classes
MTA Elementshttps://wiki.multitheftauto.com/wiki/Element
Element Treehttps://wiki.multitheftauto.com/wiki/Element_tree
What links herehttps://wiki.multitheftauto.com/wiki/Special:WhatLinksHere/Debugging
Related changeshttps://wiki.multitheftauto.com/wiki/Special:RecentChangesLinked/Debugging
Printable versionjavascript:print();
Permanent linkhttps://wiki.multitheftauto.com/wiki/Debugging?oldid=75222
Page informationhttps://wiki.multitheftauto.com/wiki/Debugging?action=info
Magyarhttp://wiki.multitheftauto.com/wiki/HU/Debugging
Italianohttp://wiki.multitheftauto.com/wiki/IT/Guida_al_Debug
Русскийhttp://wiki.multitheftauto.com/wiki/RU/Debugging
中文(中国大陆)http://wiki.multitheftauto.com/wiki/ZH-CN/%E8%84%9A%E6%9C%AC%E8%B0%83%E8%AF%95%E6%95%99%E7%A8%8B
GNU Free Documentation License 1.3https://www.gnu.org/licenses/fdl-1.3.html
Privacy policyhttps://wiki.multitheftauto.com/wiki/Multi_Theft_Auto:_Wiki:Privacy_policy
About Multi Theft Auto: Wikihttps://wiki.multitheftauto.com/wiki/Multi_Theft_Auto:_Wiki:About
Disclaimershttps://wiki.multitheftauto.com/wiki/Multi_Theft_Auto:_Wiki:General_disclaimer
https://www.gnu.org/licenses/fdl-1.3.html
https://www.mediawiki.org/

Viewport: width=1120

Robots: max-image-preview:large,max-snippet:-1,max-video-preview:-1


URLs of crawlers that visited me.