MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Using debugger in Mathematica 6 ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80307] Re: [mg80287] Using debugger in Mathematica 6 ?
  • From: Chris Hill <chill at wolfram.com>
  • Date: Fri, 17 Aug 2007 01:48:05 -0400 (EDT)
  • References: <200708161121.HAA07486@smc.vnet.net>

At 06:21 AM 8/16/2007, Alex wrote:
>Hi,
>
>I try to use the debugger in Mathematica 6 and have problems to get the
>breakpoints working.
>I enable the debugger under Evaluation/Debugger and have the debugger
>tools window and breakpoint window displayed.
>
>I set the cursor in a function that I have written and press F9 to
>toggle a bp. In my breakpoint window I see that the bp is there and
>active. But when I then call my function, the debugger does NOT stop
>at the bp :-(
>
>Any idea why?
>The bp seems to be associated with expressions and not code lines.
>Does this mean it is important which part of the expression I select
>for the bp? Is there a tutorial how to use the debugger ?
>
>Many thanks,
>
>   Alex

You must evaluate the code in which you are attempting to set a 
breakpoint after you have enabled the debugger.  Is it possible that 
you enabled the debugger after evaluating your code?  With the 
debugger enabled, try reevaluating your code.  There should be a 
(Debug) indication in the "In[n]:=" cell label for the cell 
containing your code and breakpoint.

As you observed, breakpoints are expression oriented.  What you 
select before setting a breakpoint with the F9 key is 
significant.  You may want to try selecting a different subexpression 
before setting the breakpoint.

Chris Hill
Wolfram Research 



  • Prev by Date: Re: framed plots with two y axes scales
  • Next by Date: Re: What determines what is assigned to Out[]?
  • Previous by thread: Using debugger in Mathematica 6 ?
  • Next by thread: Re: Using debugger in Mathematica 6 ?