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

Exit Print View

Updated: June 2017
 
 

func Command

In native mode, the func command lists or changes the current function. In Java mode, the func command lists or changes the current method.

Native Mode Syntax

func [procedure]

Print the name of the current function.

If a procedure is specified, change the current function to the function or procedure procedure.

where:

procedure is the name of a function or procedure.

Java Mode Syntax

func

Print the name of the current method.

func [class-name.]method-name [(parameters)]

Change the current function to the method method-name.

where:

class-name is the name of a Java class. You can use either of the following:

  • The package path using a period (.) as a qualifier; for example, test1.extra.T1.Inner

  • The full path name preceded by a pound sign (#) and using slash (/) and dollar sign ($) as qualifiers. For example, #test1/extra/T1$Inner. Enclose class-name in quotation marks if you use the $ qualifier.

method-name is the name of a Java method.

parameters are the method’s parameters.