set-breakpoint
Creates a breakpoint at the specified location in a Lua script. The next time the Lua script runs and reaches the breakpoint, the script pauses and waits for further instructions.
/action=luaDebug&command=set-breakpoint&file=File
&line=Line [&session=SessionID]
Type: Synchronous
Parameter Name | Description | Required |
---|---|---|
|
The name of the file in which to set the breakpoint. You can use an absolute or relative path. Relative paths are relative to the Connector Framework Server installation folder. | Yes |
Line
|
The line on which to set the breakpoint. | Yes |
Session
|
To set the breakpoint only for scripts run by a specific debugging session, specify a session ID. If you do not set this parameter, the breakpoint applies to every session. You can retrieve a session ID by using the get-status command. | No |
Example
http://localhost:7000/action=luadebug&command=set-breakpoint&file=scripts/script.lua&line=17
Response
<autnresponse xmlns:autn="http://schemas.autonomy.com/aci/"> <action>LUADEBUG</action> <response>SUCCESS</response> <responsedata> <data> <command>set-breakpoint</command> </data> </responsedata> </autnresponse>