title | description | ms.author | ms.date | ms.topic | author | ms.reviewer |
---|---|---|---|---|---|---|
Debugger.Attach(Integer) Method |
Activates the debugger and attaches it to the specified session. |
solsen |
05/14/2024 |
reference |
SusanneWindfeldPedersen |
solsen |
Version: Available or changed with runtime version 1.0 until version 4.0 where it was deprecated.
Activates the debugger and attaches it to the specified session.
[Ok := ] Debugger.Attach(SessionID: Integer)
SessionID
Type: Integer
The ID of the session that you want to attach the debugger to.The session can be any of the following:
- Windows client
- Web client
- NAS services session
- SOAP web services client session
- OData web services client session
- Background session
[Optional] Ok
Type: Boolean
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
The Attach method behaves like the Debug action on the Sessions page. You can call the Attach method to activate the debugger.
Debugger Data Type
Get Started with AL
Developing Extensions