Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I evaluate my code, up to some point? I don't want to evaluate all of my code always.

I have to use Shift - Enter for every line from the first cell up to the point I want to be, and it's not easy when you have a lot of code.

share|improve this question
You can also select the lines and press shift-enter once... – R. M. Mar 25 '13 at 3:26
Also, remember that your "lines" can be grouped in "cells", and you need to press shift-enter only once in order to process the whole cell – Dr. belisarius Mar 25 '13 at 3:52
@rm-rf: Thanks .It's so useful. – Bahareh Mar 25 '13 at 7:04
For evaluating through a number of cells consecutively, repeated shift-enter (on Windows) evaluates a cell and jumps to the next one. Really useful:, especially @Rolf Mertig´s anser: – Yves Klett Mar 25 '13 at 7:26

Apart from selecting cells and evaluating, you could try

  1. Mathematica's built-in debugger (under the Evaluation menu)
  2. The workbench has a debugger
  3. DebugTrace (which is probably closest to what you want)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.