* Setting debug-on-error and debug-ignored-errors
@ 2022-07-26 9:07 carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-26 10:59 ` Visuwesh
0 siblings, 1 reply; 5+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-07-26 9:07 UTC (permalink / raw)
To: Help Gnu Emacs
Does one usually set debug-on-error and debug-ignored-errors variables before launching emacs.
I am also having difficulty seeing the errors
For instance, suppose I remove an opening parenthesis, to get the error
Invalid read syntax: )
Why does emacs not help me by also showing me the file and line number at which it is complaining.
I usually have a number of init files that are run from my .emacs file, yet emacs debug errors does not print such details.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Setting debug-on-error and debug-ignored-errors
2022-07-26 9:07 Setting debug-on-error and debug-ignored-errors carlmarcos--- via Users list for the GNU Emacs text editor
@ 2022-07-26 10:59 ` Visuwesh
2022-07-26 11:30 ` carlmarcos--- via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 5+ messages in thread
From: Visuwesh @ 2022-07-26 10:59 UTC (permalink / raw)
To: carlmarcos--- via Users list for the GNU Emacs text editor; +Cc: carlmarcos
[செவ்வாய் ஜூலை 26, 2022] carlmarcos--- via Users list for the GNU Emacs text editor wrote:
> Does one usually set debug-on-error and debug-ignored-errors variables before launching emacs.
>
> I am also having difficulty seeing the errors
>
> For instance, suppose I remove an opening parenthesis, to get the error
>
> Invalid read syntax: )
>
> Why does emacs not help me by also showing me the file and line number at which it is complaining.
> I usually have a number of init files that are run from my .emacs file, yet emacs debug errors does not print such details.
Launch Emacs as `emacs --debug-init'.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Setting debug-on-error and debug-ignored-errors
2022-07-26 10:59 ` Visuwesh
@ 2022-07-26 11:30 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-30 4:03 ` Emanuel Berg
0 siblings, 1 reply; 5+ messages in thread
From: carlmarcos--- via Users list for the GNU Emacs text editor @ 2022-07-26 11:30 UTC (permalink / raw)
To: Visuwesh; +Cc: carlmarcos--- via Users list for the GNU Emacs text editor
Jul 26, 2022, 10:59 by visuweshm@gmail.com:
> [செவ்வாய் ஜூலை 26, 2022] carlmarcos--- via Users list for the GNU Emacs text editor wrote:
>
>> Does one usually set debug-on-error and debug-ignored-errors variables before launching emacs.
>>
>> I am also having difficulty seeing the errors
>>
>> For instance, suppose I remove an opening parenthesis, to get the error
>>
>> Invalid read syntax: )
>>
>> Why does emacs not help me by also showing me the file and line number at which it is complaining.
>> I usually have a number of init files that are run from my .emacs file, yet emacs debug errors does not print such details.
>>
>
> Launch Emacs as `emacs --debug-init'.
>
Ok, I get the backtrace. Is there an elisp command that makes possible to force --debug-init from my emacs file?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Setting debug-on-error and debug-ignored-errors
2022-07-26 11:30 ` carlmarcos--- via Users list for the GNU Emacs text editor
@ 2022-07-30 4:03 ` Emanuel Berg
2022-07-30 4:21 ` Michael Heerdegen
0 siblings, 1 reply; 5+ messages in thread
From: Emanuel Berg @ 2022-07-30 4:03 UTC (permalink / raw)
To: help-gnu-emacs
carlmarcos--- via Users list for the GNU Emacs text editor wrote:
>> Launch Emacs as `emacs --debug-init'.
>
> Ok, I get the backtrace. Is there an elisp command that
> makes possible to force --debug-init from my emacs file?
Interesting question, since that's the file to be debugged ...
Do you launch Emacs manually by typing 'emacs'? If so, you can
make a shell alias, say, 'emd', for 'emacs --debug-init' ...
I don't know what implications --debug-init have if there's
no error?
Indeed, why don't one always want it?
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Setting debug-on-error and debug-ignored-errors
2022-07-30 4:03 ` Emanuel Berg
@ 2022-07-30 4:21 ` Michael Heerdegen
0 siblings, 0 replies; 5+ messages in thread
From: Michael Heerdegen @ 2022-07-30 4:21 UTC (permalink / raw)
To: help-gnu-emacs
Emanuel Berg <incal@dataswamp.org> writes:
> I don't know what implications --debug-init have if there's
> no error?
None AFAIU - see `startup--load-user-init-file' where the behavior is
implemented.
> Indeed, why don't one always want it?
I guess it would scare people not familiar with debugging Emacs Lisp.
Michael.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-07-30 4:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26 9:07 Setting debug-on-error and debug-ignored-errors carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-26 10:59 ` Visuwesh
2022-07-26 11:30 ` carlmarcos--- via Users list for the GNU Emacs text editor
2022-07-30 4:03 ` Emanuel Berg
2022-07-30 4:21 ` Michael Heerdegen
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).