If you either do ctrl-L or go Views -> Call Stack, you'll be able to
view the Call Stack when you are in the break mode.
There is no way to get it programmatically, though if you google, there
are snippets for where you can "push" and "pop" your own stack. Even
then, that's quite cumbersome.