Group Abstract Group Abstract

Message Boards Message Boards

Debugger controls for Wolfram Language code?

Posted 6 years ago

The Wolfram desktop contains something called Debugger and familiar Debugger Controls. But I cannot find any description of that, and I have no idea if and how it works. At least it does not work like the tons of debuggers in other languages we are used to.

This seems to be a very old, but constantly neglected feature within the Wolfram world.

Can somebody point me to some current description or article about this feature?

POSTED BY: Werner Geiger
3 Replies
Posted 6 years ago
POSTED BY: Werner Geiger
Posted 6 years ago

So Wolfram isn't a standard imperative language where there is a notion of a state and steps. It's a term-rewriting system. In these systems, debuggers aren't necessarily what you need to figure out, "What is the state at this step."

One way most people do this is to use Sow/Reap combinations. An expression is evaluated at certain points, and you can collect values of the expression and show what those values are at that point.

Another is to use Trace, which shows the raw steps used in the evaluation.

Again, I think you're looking for a debugger, but it's not exactly what you need. With trace and sow/reap, you can easily find what you're looking for.

POSTED BY: Jalil F
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard