Call and Callee Hierarchy

This feature helps to analyze the relation between functions.

This feature is available as a tool window at View → Tool Windows → Hierarchy. To invoke it, please place the text cursor on the name of shell script function, for example debug as in the screenshots below.

Call Hierarchy

The call hierarchy displays which functions are calling your selected function. In the screenshot below, the tool window on the right displays the functions calling debug. For example, main is calling debug at two different places and print_usage is only calling it once.

The node of print_usage can be expanded to learn which other functions are calling print_usage.

Caller hierarchy of a shell script function
Caller hierarchy of a shell script function

Callee Hierarchy

Callee hierarchy works in the reverse direction. It displays which functions are called by your selected function. You can show callees instead of callers by clicking the icon on the toolbar.

In the screenshot below, the text cursor was on main when this feature was invoked. As you can see, main is calling debug twice and print_usage once. You can expand the node of print_usage to learn which functions are called by print_usage.

Callee hierarchy of a shell script function
Callee hierarchy of a shell script function
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款