Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

op invoke-debugger cli

Syntax

Description

Invoke an interactive debugger to trace the execution of an op script that is enabled in the configuration.

When you execute this command for a SLAX script, the device invokes the SLAX debugger and displays the (sdb) prompt. When you execute this command for a Python script, the device invokes the pdb interactive debugger for Python programs and displays the (Pdb) prompt. For more information about the Python debugger, see the official Python documentation.

Options

detail

Display detailed output.

argument-name argument-value

(Optional) Specify one or more arguments for the script. For each argument you include on the command line, you must specify a corresponding value for the argument.

filename

Script filename

Required Privilege Level

maintenance

Output Fields

When you enter the op invoke-debugger cli command, depending on the script type, the CLI displays either the (sdb) or (Pdb) prompt where you can enter debugging commands.

Sample Output

op invoke-debugger cli (SLAX script)

op invoke-debugger cli (Python script)

op invoke-debugger cli script argument1 value1

Release Information

Command introduced in Junos OS Release 13.1.

Support for the Python debugger added in Junos OS Release 16.1.