From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anand Tamariya Newsgroups: gmane.emacs.devel Subject: Re: Java: Jump to file from stacktrace Date: Mon, 19 Apr 2021 19:17:20 +0530 Message-ID: References: <8335vmtpio.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003ec54305c053923e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2690"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 19 15:50:40 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYUIS-0000ZH-T4 for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Apr 2021 15:50:40 +0200 Original-Received: from localhost ([::1]:38384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYUIR-0005xR-Sj for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Apr 2021 09:50:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54034) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYUFY-0003P7-1Z for emacs-devel@gnu.org; Mon, 19 Apr 2021 09:47:40 -0400 Original-Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]:35376) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYUFR-0007T9-PG; Mon, 19 Apr 2021 09:47:39 -0400 Original-Received: by mail-io1-xd35.google.com with SMTP id h141so26520581iof.2; Mon, 19 Apr 2021 06:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LYrULdhof11SuIzYETYvhJslXpA8vVYMQbke18bG2H4=; b=EURsDr+TMAbK55kekIDYqv7lVWL/h8rTpO+UFbW7gTaucUqe26enVNcLOwQyA3VgQx EcBYIMUXQ+gBL0wDKf+v4W4VCHw/FBVKvxy62wtBfw/j1g3znrEb8evDrJWst45L06V8 aP503d5xRNRCIqLmvL8sSBEJojOvS7B+CHJw87Q99aAhLM+iRyE0sHHQPepobU5XgSn+ FpKBp/nABtU88YA/bYbYLfQBGuMUrf209HlDseT1yVr3I0GTWfPqc4SRUCtfVuQLPP6b 6IwSyDyCZwKNgR1QbW9+BPfDFTFXQzduQYcRsDCWzVi0ajAw/UMC/xbi1u0e5WYp0lmO 1hqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LYrULdhof11SuIzYETYvhJslXpA8vVYMQbke18bG2H4=; b=QVWLl5TCwkbn9uU5+peQuuVcpKUK60U/ZgcPJ/xxnuT+xGj/ZbNMQdb3BJnziOCnZs Du1BfHTSvGmHBwXpvCdHfz6dzW+bxeBbV9AztxHk2S3h2mRWVVQFakZJwTTzV+eLXKN3 BF/IZdAgAt6UfvdRj7/W3VMZZysVo2P7Y2kkPm3K6QZuHQJgW93NGLjAqmkdB14x3l++ 9ICtmyEbAHOpzpxpKFeEPxZPUlNtnzMJtEIkHQyVwUpBFy54Oq+PKri9CnvikjvrwAgZ ywuHF5s1leFGX7TSP0zFfwpAq1nEA68+Gpu/NL2S6IMuO5tjWqmN+zXDV9gs7F7dwWOx drfA== X-Gm-Message-State: AOAM532A6cV7cH1THNQaui6dYow7Zm1VzgYzzRDNVx//zO3CawNvn1/x VnHf6c7jaPqKfVcSU6v5EBHBnvf8I8MP45+SLW8BVNrfSY6J1A== X-Google-Smtp-Source: ABdhPJy04ec50lUbdU6ViNpzI3leFh8SUr2OeYdjsGd9gMhxEOnkesu3SFv0Pzvz0IV0kHJ/hlkLaKH2xuf+tGRhqvE= X-Received: by 2002:a5e:dd48:: with SMTP id u8mr5510546iop.131.1618840051957; Mon, 19 Apr 2021 06:47:31 -0700 (PDT) In-Reply-To: <8335vmtpio.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::d35; envelope-from=atamariya@gmail.com; helo=mail-io1-xd35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268168 Archived-At: --0000000000003ec54305c053923e Content-Type: text/plain; charset="UTF-8" > 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? > Java applications typically log execution steps in a log file. This includes exceptions as well (a sample ). The log files are usually collected after reproducing the error scenario and analyzed. So these can be large. next-error command can take one straight to the stacktrace location. Using the file and line number, one can figure out possible causes of errors. If one could click on it and reach the destination, it's even better. I'm using this for jumping into code while running debug sessions with GUD. EDE just has a handy API for finding file by name. That's why I used that as an example. --0000000000003ec54305c053923e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Thanks, but could you please describe the scenario where this feature
would be useful?=C2=A0 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?
Java applications typically log = execution steps in a log file. This includes exceptions as well (a sample= ). The log files are usually collected after reproducing the error scenario= and analyzed. So these can be large. next-error command can take one strai= ght to the stacktrace location. Using the file and line number, one can fig= ure out possible causes of errors. If one could click on it and reach the d= estination, it's even better.

I'm usin= g this for jumping into code while running debug sessions with GUD. EDE jus= t has a handy API for finding file by name. That's why I used that as a= n example.

--0000000000003ec54305c053923e--