* Debugging errors in bytecomp code?
@ 2017-01-30 18:06 Vibhav Pant
2017-01-31 14:32 ` Stefan Monnier
0 siblings, 1 reply; 6+ messages in thread
From: Vibhav Pant @ 2017-01-30 18:06 UTC (permalink / raw)
To: emacs-devel@gnu.org
Is there a way to enter the debugger when a error in bytecomp code
itself is encountered? Right now, all errors including compilation ones
are printed to the *Compile-Log* buffer, making it impossible to get
a backtrace for internal compiler errors.
--
Vibhav Pant
vibhavp@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Debugging errors in bytecomp code?
2017-01-30 18:06 Debugging errors in bytecomp code? Vibhav Pant
@ 2017-01-31 14:32 ` Stefan Monnier
2017-01-31 16:50 ` Vibhav Pant
2017-01-31 18:07 ` Philipp Stephani
0 siblings, 2 replies; 6+ messages in thread
From: Stefan Monnier @ 2017-01-31 14:32 UTC (permalink / raw)
To: emacs-devel
> Is there a way to enter the debugger when a error in bytecomp code
> itself is encountered? Right now, all errors including compilation ones
> are printed to the *Compile-Log* buffer, making it impossible to get
> a backtrace for internal compiler errors.
(setq byte-compiler-debug t) ?
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Debugging errors in bytecomp code?
2017-01-31 14:32 ` Stefan Monnier
@ 2017-01-31 16:50 ` Vibhav Pant
2017-01-31 18:07 ` Philipp Stephani
1 sibling, 0 replies; 6+ messages in thread
From: Vibhav Pant @ 2017-01-31 16:50 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel@gnu.org
ah, thanks.
On Tue, Jan 31, 2017 at 8:02 PM, Stefan Monnier
<monnier@iro.umontreal.ca> wrote:
>> Is there a way to enter the debugger when a error in bytecomp code
>> itself is encountered? Right now, all errors including compilation ones
>> are printed to the *Compile-Log* buffer, making it impossible to get
>> a backtrace for internal compiler errors.
>
> (setq byte-compiler-debug t) ?
>
>
> Stefan
>
>
--
Vibhav Pant
vibhavp@gmail.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Debugging errors in bytecomp code?
2017-01-31 14:32 ` Stefan Monnier
2017-01-31 16:50 ` Vibhav Pant
@ 2017-01-31 18:07 ` Philipp Stephani
2017-01-31 18:54 ` Eli Zaretskii
1 sibling, 1 reply; 6+ messages in thread
From: Philipp Stephani @ 2017-01-31 18:07 UTC (permalink / raw)
To: Stefan Monnier, emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 447 bytes --]
Stefan Monnier <monnier@iro.umontreal.ca> schrieb am Di., 31. Jan. 2017 um
15:36 Uhr:
> > Is there a way to enter the debugger when a error in bytecomp code
> > itself is encountered? Right now, all errors including compilation ones
> > are printed to the *Compile-Log* buffer, making it impossible to get
> > a backtrace for internal compiler errors.
>
> (setq byte-compiler-debug t) ?
>
>
While there, here's a patch to document this variable:
[-- Attachment #1.2: Type: text/html, Size: 901 bytes --]
[-- Attachment #2: 0001-Document-variable-byte-compile-debug.txt --]
[-- Type: text/plain, Size: 1019 bytes --]
From 4d81eb450ef5219b551e01e7df7f08784fdc3231 Mon Sep 17 00:00:00 2001
From: Philipp Stephani <phst@google.com>
Date: Tue, 31 Jan 2017 19:04:36 +0100
Subject: [PATCH] Document variable `byte-compile-debug'
* lisp/emacs-lisp/bytecomp.el (byte-compile-debug): Document variable.
---
lisp/emacs-lisp/bytecomp.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index eb3f46d3d7..2c808a5b4b 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -411,7 +411,8 @@ byte-compile-call-tree-sort
:type '(choice (const name) (const callers) (const calls)
(const calls+callers) (const nil)))
-(defvar byte-compile-debug nil)
+(defvar byte-compile-debug nil
+ "If non-nil, byte compile errors will be raised as signals instead of logged.")
(defvar byte-compile-constants nil
"List of all constants encountered during compilation of this form.")
(defvar byte-compile-variables nil
--
2.11.0.483.g087da7b7c-goog
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-01-31 20:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-30 18:06 Debugging errors in bytecomp code? Vibhav Pant
2017-01-31 14:32 ` Stefan Monnier
2017-01-31 16:50 ` Vibhav Pant
2017-01-31 18:07 ` Philipp Stephani
2017-01-31 18:54 ` Eli Zaretskii
2017-01-31 20:11 ` Philipp Stephani
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).