How to get Exception.printStackTrace output to print to console/terminal

Apology for this very basic question - but how do i get Execption.printStackTrace to be printed in the console/terminal ?

I mostly need that for debugging purposes, e.g. when I want to identify a specific code-flow to a commonly used function,

and with Java I would simply add the following line to the commonly-used-function code:

    new Exception().printStackTrace()

however when i try that with ConnectIQ/MonkeyC nothing gets printed to the console/terminal (when run on sim)

p.s. I am aware of and use the VisualStudio debugger, but sometimes the use of the exception stacktrace is quicker and simpler for a quick troubleshooting