{"id":166,"date":"2020-06-05T15:40:39","date_gmt":"2020-06-05T15:40:39","guid":{"rendered":"https:\/\/www.lucushost.com\/?post_type=post_type&#038;p=162"},"modified":"2020-10-14T15:27:33","modified_gmt":"2020-10-14T15:27:33","slug":"activar-modo-debug-prestashop","status":"publish","type":"post","link":"https:\/\/www.lucushost.com\/ayuda\/activar-modo-debug-prestashop\/","title":{"rendered":"C\u00f3mo activar el modo debug en PrestaShop"},"content":{"rendered":"<p>Es bastante habitual que cuando PrestaShop nos devuelve un error y nos indica que la web no est\u00e1 accesible o no se puede visualizar, solamente veamos un aviso como el siguiente:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-164\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2020\/06\/prestashop-error.png\" alt=\"Ejemplo de error 500 en PrestaShop\" width=\"642\" height=\"286\" title=\"\"><\/p>\n<p>Pero, \u00bfc\u00f3mo s\u00e9 de qu\u00e9 error se trata? Aqu\u00ed entra en juego el poder del <strong>modo debug de PrestaShop<\/strong>.<\/p>\n<p>El modo depuraci\u00f3n de PrestaShop o modo debug nos permite conocer qu\u00e9 es lo que est\u00e1 generando errores en nuestra aplicaci\u00f3n y depurar funciones que no est\u00e1n funcionando correctamente.<\/p>\n<h2>C\u00f3mo activar el modo debug en PrestaShop<\/h2>\n<p>Puedes <strong>habilitar el modo debug en PrestaShop<\/strong> 1.6 y 1.7 editando el fichero defines.inc.php dentro de la carpeta \u00abconfig\u00bb:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-165\" src=\"https:\/\/www.lucushost.com\/ayuda\/wp-content\/uploads\/2020\/06\/prestashop-editar-config-defines.php_.png\" alt=\"Editar el fichero defines.inc.php \" width=\"668\" height=\"420\" title=\"\"><\/p>\n<p>Buscamos el valor \u00abdefine(&#8216;_PS_MODE_DEV_&#8217;, false);\u00bb y cambiamos \u2018false\u2019 por \u00abtrue\u00bb. Te tiene que quedar de esta forma:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/* Debug only *\/ \r\nif (!defined('_PS_MODE_DEV_')) { \r\ndefine('_PS_MODE_DEV_', true); \r\n}<\/pre>\n<p>Si utilizas la versi\u00f3n 1.7 de PrestaShop, tambi\u00e9n puedes activar el modo debug desde el backoffice. Para ello, accede a \u00abPar\u00e1metros avanzados\u00bb &#8211; \u00abRendimiento\u00bb &#8211; \u00abDepuraci\u00f3n\u00bb.<\/p>\n<p>\u00bfNo est\u00e1s seguro de qu\u00e9 versi\u00f3n tienes? En este art\u00edculo te explicamos <a href=\"\/ayuda\/como-saber-que-version-de-prestashop-tengo\/\"><strong>C\u00f3mo saber qu\u00e9 versi\u00f3n de PrestaShop est\u00e1s utilizando<\/strong><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Es bastante habitual que cuando PrestaShop nos devuelve un error y nos indica que la web no est\u00e1 accesible o no se puede visualizar, solamente veamos un aviso como el siguiente: Pero, \u00bfc\u00f3mo s\u00e9 de qu\u00e9 error se trata? Aqu\u00ed entra en juego el poder del modo debug de PrestaShop. El modo depuraci\u00f3n de PrestaShop (&#8230;)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/posts\/166"}],"collection":[{"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/comments?post=166"}],"version-history":[{"count":6,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/posts\/166\/revisions"}],"predecessor-version":[{"id":1328,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/posts\/166\/revisions\/1328"}],"wp:attachment":[{"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/media?parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/categories?post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lucushost.com\/ayuda\/wp-json\/wp\/v2\/tags?post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}