{"title":"Debugger data type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/debugger/debugger-data-type/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/debugger/debugger-data-type","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Enables communication with a debugger.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Static methods","slug":"static-methods","at":174,"chars":2177},{"level":2,"title":"Related information","slug":"related-information","at":2351,"chars":117}],"text":"> Version: _Available or changed with runtime version 1.0._\nEnables communication with a debugger.\n> NOTE\n> This data type is supported only in Business Central on-premises.\n## Static methods\nThe following methods are available on the Debugger data type.\nMethod name|Description\ndebugger-activate-method|Activates the debugger and attaches the debugger to the next session that is started.\nAttach(Integer)<debugger-attach-method>|Activates the debugger and attaches it to the specified session.\ndebugger-break-method|Breaks code execution of a debugging session.\nBreakOnError(Boolean)<debugger-breakonerror-method>|Sets whether the debugger breaks on errors.\nBreakOnRecordChanges(Boolean)<debugger-breakonrecordchanges-method>|Breaks execution before a change to a record occurs.\ndebugger-continue-method|Executes code until the next breakpoint or until execution ends.\ndebugger-deactivate-method|Deactivates the debugger.\ndebugger-debuggedsessionid-method|Gets the ID of the previous session that the debugger was attached to.\ndebugger-debuggingsessionid-method|Gets the ID of the session that the debugger is currently attached to.\nEnableSqlTrace(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.\ndebugger-getlasterrortext-method|Gets the last error that occurred in the debugger.\ndebugger-isactive-method|Indicates whether the debugger is active.\ndebugger-isattached-method|Specifies if the debugger is attached to a session.\ndebugger-isbreakpointhit-method|Specifies if a breakpoint is hit in a debugging session.\nSkipSystemTriggers(Boolean)<debugger-skipsystemtriggers-method>|Enables the debugger to skip code that is inside system triggers.\ndebugger-stepinto-method|Executes a method call and then stops at the first line of code inside the method.\ndebugger-stepout-method|Enables debugging to return to the calling method after it steps into a method call.\ndebugger-stepover-method|Executes a method call and then stops at the first line outside the method call.\ndebugger-stop-method|Stops execution as if the code hits an error.\n> NOTE\n> 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.\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}