| 
									
										
										
										
											2023-02-05 23:14:10 +01:00
										 |  |  | # {debug}
 | 
					
						
							| 
									
										
										
										
											2021-12-03 11:59:22 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | `{debug}` dumps the debug console to the page. This works regardless of | 
					
						
							| 
									
										
										
										
											2023-02-05 23:14:10 +01:00
										 |  |  | the [debug](../chapter-debugging-console.md) settings in the php script. | 
					
						
							| 
									
										
										
										
											2021-12-03 11:59:22 +01:00
										 |  |  | Since this gets executed at runtime, this is only able to show the | 
					
						
							| 
									
										
										
										
											2023-02-05 23:14:10 +01:00
										 |  |  | [assigned](../../programmers/api-functions/api-assign.md) variables; not the templates that are in use. | 
					
						
							| 
									
										
										
										
											2021-12-03 11:59:22 +01:00
										 |  |  | However, you can see all the currently available variables within the | 
					
						
							|  |  |  | scope of a template. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | If caching is enabled and a page is loaded from cache `{debug}` does | 
					
						
							|  |  |  | show only the variables which assigned for the cached page. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | In order to see also the variables which have been locally assigned | 
					
						
							|  |  |  | within the template it does make sense to place the `{debug}` tag at the | 
					
						
							|  |  |  | end of the template. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-05 23:14:10 +01:00
										 |  |  | See also the [debugging console page](../chapter-debugging-console.md). |