View activity stack in Android [closed]

Is it possible to view the activity stack in Android for debugging purposes?


To display the activity stack, run the following command :

adb shell dumpsys activity activities