{"reader":"the saved page's own text as drawn by the browser, each line checked for ink on this picture (no OCR guesswork)","reading_order":[{"area":"address strip","text":"URSY.com saved copy  ·  read 2026-12-01"},{"area":"address strip","text":"https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/","boxed_in_red":true},{"area":"page","text":"WP_DEBUG","box":[371,76,441,95]},{"area":"page","text":"is a PHP constant (a permanent global variable) that can be used to trigger the “debug” mode throughout","box":[449,77,1190,94]},{"area":"page","text":"WordPress. It is assumed to be false by default, and is usually set to true in the","box":[368,107,927,124]},{"area":"page","text":"wp-config.php","box":[932,107,1031,124]},{"area":"page","text":"file on development","box":[1036,107,1174,124]},{"area":"page","text":"copies of WordPress.","box":[368,137,520,154]},{"area":"page","text":"// This enables debugging.","box":[392,205,621,224]},{"area":"page","text":"define( 'WP_DEBUG', true );","box":[392,232,630,251]},{"area":"page","text":"// This disables debugging.","box":[392,322,630,341]},{"area":"page","text":"define( 'WP_DEBUG', false );","box":[392,348,638,367]},{"area":"page","text":"Note","box":[368,420,404,437]},{"area":"page","text":": The","box":[404,420,440,437]},{"area":"page","text":"true","box":[447,419,482,438]},{"area":"page","text":"and","box":[490,420,517,437]},{"area":"page","text":"false","box":[524,419,568,438]},{"area":"page","text":"values in the example are not surrounded by apostrophes (‘) because they are boolean","box":[575,420,1191,437]},{"area":"page","text":"(true/false) values. If you set constants to","box":[368,450,660,467]},{"area":"page","text":"'false'","box":[667,449,729,468]},{"area":"page","text":", they will be interpreted as true because the quotes make it a","box":[732,450,1168,467]},{"area":"page","text":"string rather than a boolean.","box":[368,480,568,497]},{"area":"page","text":"It is not recommended to use","box":[368,530,574,547],"boxed":true},{"area":"page","text":"WP_DEBUG","box":[582,529,652,548],"boxed":true},{"area":"page","text":"or the other debug tools on live sites; they are meant for local testing and","box":[660,530,1175,547],"boxed":true},{"area":"page","text":"staging installs.","box":[368,560,477,577]},{"area":"page","text":"PHP Errors, Warnings, and Notices","box":[368,635,700,657]},{"area":"page","text":"Enabling","box":[368,684,430,701]},{"area":"page","text":"WP_DEBUG","box":[438,683,508,702]},{"area":"page","text":"will cause all PHP errors, notices, and warnings to be displayed. This is likely to modify the","box":[516,684,1155,701]},{"area":"page","text":"default behavior of PHP, which only displays fatal errors or shows a white screen of death when errors are reached.","box":[368,714,1183,731]},{"area":"page","text":"Showing all PHP notices and warnings often results in error messages for things that don’t seem broken, but do not","box":[368,764,1183,781]},{"area":"page","text":"follow proper data validation conventions inside PHP. These warnings are easy to fix once the relevant code has","box":[368,794,1161,811]},{"area":"page","text":"been identified, and the resulting code is almost always more bug-resistant and easier to maintain.","box":[368,824,1064,841]},{"area":"page","text":"Custom PHP Debugging","box":[368,899,599,921]},{"area":"page","text":"If it is necessary to log non-error information for debugging purposes, PHP does offer the","box":[368,948,996,965]},{"area":"page","text":"error_log","box":[1004,947,1083,966]},{"area":"page","text":"function for this","box":[1090,948,1199,965]},{"area":"label","text":"Website problem · Security and HTTPS · official source: WordPress.org"},{"area":"label","text":"The WordPress error log can be read by anyone"},{"area":"label","text":"Source and record: ursy.com/truth-spine/I-0125/"},{"area":"label badge","text":"URSY.com"},{"area":"label badge","text":"TRUTH SPINE"},{"area":"label badge","text":"FACT RECORD I-0125"},{"area":"label","text":"Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine. Explore them all at ursy.com/truth-spine"}],"not_read":"Lines hidden on the page (for example icon names the saved copy cannot draw) are left out."}
