{"id":22387,"date":"2019-06-25T16:17:45","date_gmt":"2019-06-25T20:17:45","guid":{"rendered":"https:\/\/docs.gravityforms.com\/?p=22387"},"modified":"2025-04-18T10:48:17","modified_gmt":"2025-04-18T14:48:17","slug":"gf_debug","status":"publish","type":"post","link":"https:\/\/docs.gravityforms.com\/gf_debug\/","title":{"rendered":"GF_DEBUG"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-description\">Description<\/h2>\n\n\n\n<p>This constant helps debugging problems with AJAX forms by allowing the contents of the AJAX iframe to be viewed. Set the constant to <strong>true<\/strong> to display the contents.<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#f5955221\"><strong>Note:<\/strong> To load the non-minified versions of Gravity Forms legacy scripts and styles for debugging purposes, you can enable SCRIPT_DEBUG. Legacy files are those located in \/gravityforms\/css\/ and \/gravityforms\/js\/. New files are located in \/gravityforms\/assets\/, and don&#8217;t have non-minified versions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-usage\">Usage<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\ndefine( 'GF_DEBUG', true );\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-placement\">Placement<\/h2>\n\n\n\n<p>This constant should be set in your wp-config.php. See the article <a data-autolink=\"autolink_wp-config-options\" href=\"\/wp-config-options\">WP Config Options<\/a> for more details.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Allows the contents of the AJAX iframe to be viewed for AJAX forms.<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_autodraft_ids":[],"jetpack_post_was_ever_published":false,"_sb_is_suggestion_mode":false,"_sb_show_suggestion_boards":false,"_sb_show_comment_boards":false,"_sb_suggestion_history":"","_sb_update_block_changes":"","_is_real_time_mode":false,"_realtime_collaborators":"","footnotes":"","cf_checklist_status":[]},"categories":[330],"tags":[],"class_list":["post-22387","post","type-post","status-publish","format-standard","hentry","category-constants","wpautop"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>GF_DEBUG - Gravity Forms Documentation<\/title>\n<meta name=\"description\" content=\"The GF_DEBUG constant in Gravity Forms allows the contents of the AJAX iframe to be viewed for AJAX forms.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.gravityforms.com\/gf_debug\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GF_DEBUG\" \/>\n<meta property=\"og:description\" content=\"The GF_DEBUG constant in Gravity Forms allows the contents of the AJAX iframe to be viewed for AJAX forms.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.gravityforms.com\/gf_debug\/\" \/>\n<meta property=\"og:site_name\" content=\"Gravity Forms Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-25T20:17:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-18T14:48:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2023\/08\/gf-docs-default-v3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"544\" \/>\n\t<meta property=\"og:image:height\" content=\"288\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Dana Cobb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@gravityforms\" \/>\n<meta name=\"twitter:site\" content=\"@gravityforms\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dana Cobb\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_debug\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_debug\\\/\"},\"author\":{\"name\":\"Dana Cobb\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/person\\\/beaae56b85ba225a12574df6462534a2\"},\"headline\":\"GF_DEBUG\",\"datePublished\":\"2019-06-25T20:17:45+00:00\",\"dateModified\":\"2025-04-18T14:48:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_debug\\\/\"},\"wordCount\":96,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#organization\"},\"articleSection\":[\"Constants\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/docs.gravityforms.com\\\/gf_debug\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_debug\\\/\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_debug\\\/\",\"name\":\"GF_DEBUG - Gravity Forms Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#website\"},\"datePublished\":\"2019-06-25T20:17:45+00:00\",\"dateModified\":\"2025-04-18T14:48:17+00:00\",\"description\":\"The GF_DEBUG constant in Gravity Forms allows the contents of the AJAX iframe to be viewed for AJAX forms.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_debug\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/docs.gravityforms.com\\\/gf_debug\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/gf_debug\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/docs.gravityforms.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GF_DEBUG\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#website\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/\",\"name\":\"Gravity Forms Documentation\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/docs.gravityforms.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#organization\",\"name\":\"Gravity Forms\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/gravity-forms-2020-logo-stacked.png\",\"contentUrl\":\"https:\\\/\\\/docs.gravityforms.com\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/gravity-forms-2020-logo-stacked.png\",\"width\":392,\"height\":515,\"caption\":\"Gravity Forms\"},\"image\":{\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/gravityforms\",\"http:\\\/\\\/@gravityforms.com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/docs.gravityforms.com\\\/#\\\/schema\\\/person\\\/beaae56b85ba225a12574df6462534a2\",\"name\":\"Dana Cobb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87159a8d6cbc1039e002872cc7c3574cec6c0bba5c8b22e97bfd900f2cd03d95?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87159a8d6cbc1039e002872cc7c3574cec6c0bba5c8b22e97bfd900f2cd03d95?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/87159a8d6cbc1039e002872cc7c3574cec6c0bba5c8b22e97bfd900f2cd03d95?s=96&d=mm&r=g\",\"caption\":\"Dana Cobb\"},\"url\":\"https:\\\/\\\/docs.gravityforms.com\\\/author\\\/danacobb\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"GF_DEBUG - Gravity Forms Documentation","description":"The GF_DEBUG constant in Gravity Forms allows the contents of the AJAX iframe to be viewed for AJAX forms.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.gravityforms.com\/gf_debug\/","og_locale":"en_US","og_type":"article","og_title":"GF_DEBUG","og_description":"The GF_DEBUG constant in Gravity Forms allows the contents of the AJAX iframe to be viewed for AJAX forms.","og_url":"https:\/\/docs.gravityforms.com\/gf_debug\/","og_site_name":"Gravity Forms Documentation","article_published_time":"2019-06-25T20:17:45+00:00","article_modified_time":"2025-04-18T14:48:17+00:00","og_image":[{"width":544,"height":288,"url":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2023\/08\/gf-docs-default-v3.png","type":"image\/png"}],"author":"Dana Cobb","twitter_card":"summary_large_image","twitter_creator":"@gravityforms","twitter_site":"@gravityforms","twitter_misc":{"Written by":"Dana Cobb","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/docs.gravityforms.com\/gf_debug\/#article","isPartOf":{"@id":"https:\/\/docs.gravityforms.com\/gf_debug\/"},"author":{"name":"Dana Cobb","@id":"https:\/\/docs.gravityforms.com\/#\/schema\/person\/beaae56b85ba225a12574df6462534a2"},"headline":"GF_DEBUG","datePublished":"2019-06-25T20:17:45+00:00","dateModified":"2025-04-18T14:48:17+00:00","mainEntityOfPage":{"@id":"https:\/\/docs.gravityforms.com\/gf_debug\/"},"wordCount":96,"commentCount":0,"publisher":{"@id":"https:\/\/docs.gravityforms.com\/#organization"},"articleSection":["Constants"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/docs.gravityforms.com\/gf_debug\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/docs.gravityforms.com\/gf_debug\/","url":"https:\/\/docs.gravityforms.com\/gf_debug\/","name":"GF_DEBUG - Gravity Forms Documentation","isPartOf":{"@id":"https:\/\/docs.gravityforms.com\/#website"},"datePublished":"2019-06-25T20:17:45+00:00","dateModified":"2025-04-18T14:48:17+00:00","description":"The GF_DEBUG constant in Gravity Forms allows the contents of the AJAX iframe to be viewed for AJAX forms.","breadcrumb":{"@id":"https:\/\/docs.gravityforms.com\/gf_debug\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.gravityforms.com\/gf_debug\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.gravityforms.com\/gf_debug\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.gravityforms.com\/"},{"@type":"ListItem","position":2,"name":"GF_DEBUG"}]},{"@type":"WebSite","@id":"https:\/\/docs.gravityforms.com\/#website","url":"https:\/\/docs.gravityforms.com\/","name":"Gravity Forms Documentation","description":"","publisher":{"@id":"https:\/\/docs.gravityforms.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.gravityforms.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/docs.gravityforms.com\/#organization","name":"Gravity Forms","url":"https:\/\/docs.gravityforms.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.gravityforms.com\/#\/schema\/logo\/image\/","url":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2020\/01\/gravity-forms-2020-logo-stacked.png","contentUrl":"https:\/\/docs.gravityforms.com\/wp-content\/uploads\/2020\/01\/gravity-forms-2020-logo-stacked.png","width":392,"height":515,"caption":"Gravity Forms"},"image":{"@id":"https:\/\/docs.gravityforms.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/gravityforms","http:\/\/@gravityforms.com"]},{"@type":"Person","@id":"https:\/\/docs.gravityforms.com\/#\/schema\/person\/beaae56b85ba225a12574df6462534a2","name":"Dana Cobb","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/87159a8d6cbc1039e002872cc7c3574cec6c0bba5c8b22e97bfd900f2cd03d95?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/87159a8d6cbc1039e002872cc7c3574cec6c0bba5c8b22e97bfd900f2cd03d95?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/87159a8d6cbc1039e002872cc7c3574cec6c0bba5c8b22e97bfd900f2cd03d95?s=96&d=mm&r=g","caption":"Dana Cobb"},"url":"https:\/\/docs.gravityforms.com\/author\/danacobb\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/sdGaEa-gf_debug","_links":{"self":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts\/22387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/comments?post=22387"}],"version-history":[{"count":1,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts\/22387\/revisions"}],"predecessor-version":[{"id":43205,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/posts\/22387\/revisions\/43205"}],"wp:attachment":[{"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/media?parent=22387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/categories?post=22387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.gravityforms.com\/wp-json\/wp\/v2\/tags?post=22387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}