{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:47:38Z","object_id":{"id":1296,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_base","title":"mod_base","uri":"https:\/\/zotonic.com\/id\/1296"},"seq":1000000}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"relation":{"objects":[{"created":"2020-05-30T05:47:38Z","object_id":{"id":1300,"is_a":["text","documentation","reference","template_tag"],"name":"doc_template_tag_tag_print","title":"print","uri":"https:\/\/zotonic.com\/id\/1300"},"seq":1000000}],"predicate":{"id":303,"is_a":["meta","predicate"],"name":"relation","title":{"_type":"trans","tr":{"nl":"Relatie","en":"Relation"}},"uri":"http:\/\/purl.org\/dc\/terms\/relation"}},"subject":{"objects":[{"created":"2026-09-09T13:48:08Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:48:08Z","object_id":{"id":2563,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_frontend_developer","title":"Frontend developer","uri":"https:\/\/zotonic.com\/id\/2563"},"seq":2},{"created":"2026-09-09T13:48:08Z","object_id":{"id":2613,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_development_and_debugging","title":"Development and debugging","uri":"https:\/\/zotonic.com\/id\/2613"},"seq":3},{"created":"2026-09-09T13:48:08Z","object_id":{"id":2623,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_scomp","title":"Server component","uri":"https:\/\/zotonic.com\/id\/2623"},"seq":4},{"created":"2026-09-09T13:48:08Z","object_id":{"id":2642,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_format","title":"Format","uri":"https:\/\/zotonic.com\/id\/2642"},"seq":5},{"created":"2026-09-09T13:48:08Z","object_id":{"id":2665,"is_a":["categorization","keyword","keyword_data_type"],"name":"zotonic_topic_structured_data","title":"Structured data","uri":"https:\/\/zotonic.com\/id\/2665"},"seq":6}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1388,"is_a":["text","documentation","reference","template_scomp"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1388"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_template_scomp_scomp_debug","page_url":{"en":"https:\/\/zotonic.com\/docs\/1388\/debug","x-default":"https:\/\/zotonic.com\/docs\/1388\/debug"},"preview_url":null,"resource":{"version":3329,"pivot_location_lat":null,"title":"debug","is_authoritative":true,"body":"<p>Shows which variables are assigned for use in the current template’s scope:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">{% debug %}\n<\/code><\/pre>\n<p>Optionally, variable names can be provided to be debugged:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-erlang\">{% debug session_id q template zotonic_dispatch %}\n<\/code><\/pre>\n<p>By default, all key nodes are collapsed. Expanded, each node contains the value associated and highlighted as Erlang code:<\/p>\n<p><img src=\"\/lib\/images\/scomp_base_debug_expanded.png\" alt=\"Debug output with expanded variable nodes\" \/><\/p>\n<p>The debug scomp contains three buttons at the top right:<\/p>\n<ul><li><code>_<\/code>: Collapse all key nodes;<\/li><li><code>□<\/code>: Expand all key nodes;<\/li><li><code>×<\/code>: Removes the debug element from the HTML document.<\/li><\/ul>\n<p>There is also a resizer at the bottom right corner to resize the <code>debug<\/code> element horizontally.<\/p>","slug":"debug","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"1daa147a4641049513ddea749aec63d471a47c1aee8023ffdafab3663b887743","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":327,"is_a":["meta","category"],"name":"template_scomp","title":"Scomp","uri":"https:\/\/zotonic.com\/id\/template_scomp"},"doc_source_path":"apps\/zotonic_mod_base\/src\/scomps\/scomp_base_debug.erl","publication_start":"2023-01-30T19:23:55Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_base\/src\/scomps\/scomp_base_debug.erl","pivot_location_lng":null,"doc_source_kind":"scomp","name":"doc_template_scomp_scomp_debug","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:20Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_base","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"66cb145eae7002b184e7d8c4c7bba5e53e8248e5\n","erlang_module":"scomp_base_debug","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-02T12:40:33Z","title_slug":"debug"},"uri":"https:\/\/zotonic.com\/id\/1388","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1388"}},"status":"ok"}