[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Java: Jump to file from stacktrace
From: |
Eli Zaretskii |
Subject: |
Re: Java: Jump to file from stacktrace |
Date: |
Mon, 19 Apr 2021 15:41:51 +0300 |
> From: Anand Tamariya <atamariya@gmail.com>
> Date: Sun, 18 Apr 2021 20:21:31 +0530
>
> If you need to jump into a file from stacktrace in a log, use the patch in
> compile.el . Then with an appropriate
> find-file function, you can easily jump to the location.
>
> (defun gud-compilation-find-file (_marker filename _directory &rest _formats)
> "Find a buffer for file FILENAME."
> (ede-find-file filename))
>
> (setq next-error-function 'compilation-next-error-function
> compilation-locs (make-hash-table :test 'equal :weakness 'value)
> compilation-find-file 'gud-compilation-find-file)
Thanks, but could you please describe the scenario where this feature
would be useful? I'm not sure I understand that, especially what kind
of "log" is supposed to include a stacktrace, and what do GUD and EDE
have to do with this?