# 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
--- | --- | ---
`File` | 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 YouTube Connector 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>

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm