Sun Studio 12 Update 1: Debugging a Program With dbx

line Command

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



Display the current line number.

line number

Set the current line number to number.

line "file_name"

Set current line number to line 1 in file_name.

line "file_name":number

Set current line number to line number in file_name.


file_name is the name of the file in which to change the line number. The ““ around the filename is optional.

number is the number of a line in the file.


line 100
line "/root/test/":100