Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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
2  
You can also select the lines and press shift-enter once... –  rm -rf Mar 25 '13 at 3:26
1  
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 –  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: mathematica.stackexchange.com/q/16697/131, especially @Rolf Mertig´s anser: mathematica.stackexchange.com/a/16760/131 –  Yves Klett Mar 25 '13 at 7:26
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.