Sun Studio 12: Debugging a Program With dbx

Syntax

line

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.

where:

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.

Examples

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