From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: (debug) backtrace: how to show source code at current location. Date: Thu, 06 Jan 2011 10:31:36 +1100 Organization: Unlimited download news at news.astraweb.com Message-ID: <871v4rapwn.fsf@puma.rapttech.com.au> References: <4678E0C82C5D4DAB81AF90DFA7E07027@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1294270838 6332 80.91.229.12 (5 Jan 2011 23:40:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2011 23:40:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 06 00:40:34 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pacy1-0008DT-L8 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jan 2011 00:40:33 +0100 Original-Received: from localhost ([127.0.0.1]:58254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pacy1-0003RN-3a for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jan 2011 18:40:33 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:zzB+G6IKWdfVMJs+iJ5UqDdIzQk= Original-Lines: 67 Original-NNTP-Posting-Host: 5fbf6447.news.astraweb.com Original-X-Trace: DXC=T0>S; 4\; C9XI56`V^?kWSCAkl5c@Xgk^H]cBRl5W4>\YGAK53OCFWR Original-Xref: usenet.stanford.edu gnu.emacs.help:184042 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78241 Archived-At: Larry Evans writes: > On 01/05/11 13:06, Drew Adams wrote: >>> Please, how can I find out what's causing this error message: >>> >>> "(wrong-type-argument arrayp tab)" >> >> From your error message alone, it seems that the symbol `tab' is being passed to >> some function that expects an array. That's not much help yet, but things might >> become clearer when you dig deeper using the debugger. >> >> (setq debug-on-error t) >> >> 1. Load source (*.el) files for the library where the error occurred. >> >> IOW, look at the `debug-on-error' backtrace to see which function(s) were >> involved when the error occurred. Then use `C-h f' or `find-func' to find the >> function definition(s) (source file(s)). Load the source file(s) (*.el) using >> `load-file' or `load-library', including the extension `.el' in the name. >> >> 2. Provoke the error and backtrace again. It should now show more source-code >> entry points instead of byte-code (the `(byte-code "ÁÂÃ...' stuff) >> >> 3. You can also use `M-x debug-on-entry THE-FUNCTION' to enter the debugger >> whenever a problematic function is invoked. Then you can walk through the >> invocation to see more about what caused the error. >> >> >> > Thank you very much for the help Drew. > What I did was started with just: > > (setq debug-on-error t) > > as shown in the attachment (a revision of the one posted earlier). > The started emacs; however, no backtrace appeared. OTOH, the > *Messages* buffer contained: > >> Loading /home/evansl/.emacs.d/init.common.el (source)... >> Loading /home/evansl/.recentf...done >> Cleaning up the recentf list...done (0 removed) >> Loading /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file.el (source)...done >> Loading /home/evansl/.emacs.d/init.common.el (source)...done >> Loading desktop...done >> Loading eldoc...done >> uncompressing indent.el.gz...done >> Note: file is write protected >> Loading cc-mode...done >> Note: file is write protected >> c-tab-stop-my-list message >> c++-mode-my-hook message:tabs= >> (0 2 4) >> c++-mode-my-hook message{ >> File mode specification error: (wrong-type-argument arrayp tab) >> Loading /usr/share/emacs/site-lisp/haskell-mode/haskell-mode.el (source)...done > > Is there something else I should do to get a backtrace? > Yep, start emacs as emacs --debug-init Tim -- tcross (at) rapttech dot com dot au