Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: How to debug init.m?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg92332] Re: How to debug init.m?
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Sat, 27 Sep 2008 22:22:16 -0400 (EDT)
  • Organization: University of Bergen
  • References: <gbl30f$m0g$1@smc.vnet.net>

Bob F wrote:
> Does anyone have any suggestions on how to debug a problem with an
> init.m file (located in ~/Library/Mathematica/FrontEnd)? I am using
> Mathematica 6.0.3 on Mac OS X (both 10.4 and 10.5 show the problem)
> and if I simply start up the program and have a completely empty
> notebook, then open the "Options Inspector" and then start up the
> "Documentation Center" the program always crashes. If I empty the
> init.m file there is no crash, so the problem is related to what it
> has. But, the things that are there are there because of how I want
> things set up, e.g. positions of palettes, kernel configuration
> definitions, recently opened files, etc, and only because Mathematica
> puts them in there according to how I have things defined and what
> files I have opened, etc. I have not edited this file by hand, so the
> error is there as a result of Mathematica.  I have looked at the file
> and don't find any strange control-characters or anything glaringly
> obvious, but it's all regular looking text in the typical verbose
> Mathematica low-level encoding.
> 
> The file has 218 lines in it right now, so trying to debug by
> eliminating things line by line is a bit daunting. 

Don't remove lines one-by-one.  Halve the number of lines.  That way it 
takes only Log[2, 218] ~= 8 steps instead of 218.


  • Prev by Date: Re: Manipulate / Space Phasor
  • Next by Date: Re: SparseArray
  • Previous by thread: How to debug init.m?
  • Next by thread: Re: How to debug init.m?