Go to main content
Oracle® Developer Studio 12.5: Debugging a Program with dbx

Exit Print View

Updated: June 2016
 
 

line Command

The line command lists or changes the current line number. It has the same syntax and functionality in native mode and in Java mode.

Syntax

line [["file-name":][number]]

Display the current line number.

If a number is specified, set the current line number to number.

If a file name is specified, set current line number to line 1 in filename.

If both are specified, set current line number to line number in file-name.

where:

filename is the name of the file in which to change the line number. The ““ quotation marks around the file name are optional. They are useful when your file name contains spaces.

number is the number of a line in the file.

Examples

line 100
line "/root/test/test.cc":100