What are the key differences in function usage between xdebug 1 and xdebug 2, particularly in terms of xdebug_get_function_trace()?

In xdebug 1, the function xdebug_get_function_trace() was used to retrieve the function trace, but in xdebug 2, this function was removed. Instead, xdebug_start_trace() and xdebug_stop_trace() functions should be used to start and stop function tracing. To solve this issue, update the code to use xdebug_start_trace() and xdebug_stop_trace() functions for function tracing in xdebug 2.

// Start function tracing
xdebug_start_trace();

// Code block to trace

// Stop function tracing
xdebug_stop_trace();