I have looked through the SMLNJ User Guide and can't find anything about debugging capabilities. I'd love to just see a stack trace, or step through a function. Is this possible. Are there other implementations for similar variants of SML that do provide this feature?
Does SMLNJ have any sort of debugger
smlnj
Best Solution
There's currently no step-based debugger.
You can get stack backtraces by doing the following:
Then, you can load some code and instead of just printing the exception, you'll get a simulated stack backtrace. You do have to recompile your code after following the above steps, or this won't work!