Debugger.Attach(Integer) Method

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.

Syntax

[Ok := ]  Debugger.Attach(SessionID: Integer)

Parameters

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

Return Value

[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.

Remarks

The Attach method behaves like the Debug action on the Sessions page. You can call the Attach method to activate the debugger.

See Also

Debugger Data Type
Get Started with AL
Developing Extensions