# Debugger data type
> Version: _Available or changed with runtime version 1.0._
Enables communication with a debugger.
> NOTE
> This data type is supported only in Business Central on-premises.
## Static methods
The following methods are available on the Debugger data type.
Method name|Description
debugger-activate-method|Activates the debugger and attaches the debugger to the next session that is started.
Attach(Integer)<debugger-attach-method>|Activates the debugger and attaches it to the specified session.
debugger-break-method|Breaks code execution of a debugging session.
BreakOnError(Boolean)<debugger-breakonerror-method>|Sets whether the debugger breaks on errors.
BreakOnRecordChanges(Boolean)<debugger-breakonrecordchanges-method>|Breaks execution before a change to a record occurs.
debugger-continue-method|Executes code until the next breakpoint or until execution ends.
debugger-deactivate-method|Deactivates the debugger.
debugger-debuggedsessionid-method|Gets the ID of the previous session that the debugger was attached to.
debugger-debuggingsessionid-method|Gets the ID of the session that the debugger is currently attached to.
EnableSqlTrace(Integer [, Boolean])<debugger-enablesqltrace-method>|Enables or verifies SQL tracing. If you enable SQL tracing, then SQL Server events for selected sessions on the server instance are collected.
debugger-getlasterrortext-method|Gets the last error that occurred in the debugger.
debugger-isactive-method|Indicates whether the debugger is active.
debugger-isattached-method|Specifies if the debugger is attached to a session.
debugger-isbreakpointhit-method|Specifies if a breakpoint is hit in a debugging session.
SkipSystemTriggers(Boolean)<debugger-skipsystemtriggers-method>|Enables the debugger to skip code that is inside system triggers.
debugger-stepinto-method|Executes a method call and then stops at the first line of code inside the method.
debugger-stepout-method|Enables debugging to return to the calling method after it steps into a method call.
debugger-stepover-method|Executes a method call and then stops at the first line outside the method call.
debugger-stop-method|Stops execution as if the code hits an error.
> NOTE
> The Dynamics 365 Business Central Debugger is an example of a debugger application that is built using tables, pages, codeunits, and the AL debugger methods.
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/debugger/debugger-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/debugger/debugger-data-type/
