From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lawrence Liu Newsgroups: gmane.emacs.devel Subject: Re: python: Let pdb tracking not kill buffers Date: Tue, 8 Oct 2019 00:26:24 +0800 Message-ID: References: <83a7af66fo.fsf@gnu.org> <83wodgzfxj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ebfe2405945483fd" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="23857"; mail-complaints-to="usenet@blaine.gmane.org" Cc: andreyk.mad@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 07 18:32:24 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHVvr-0005zb-P1 for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2019 18:32:24 +0200 Original-Received: from localhost ([::1]:47562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHVvp-000539-8D for ged-emacs-devel@m.gmane.org; Mon, 07 Oct 2019 12:32:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59318) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iHVqJ-0000Sa-BZ for emacs-devel@gnu.org; Mon, 07 Oct 2019 12:26:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iHVqI-0000VV-7z for emacs-devel@gnu.org; Mon, 07 Oct 2019 12:26:39 -0400 Original-Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]:38249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iHVqG-0000U4-5F; Mon, 07 Oct 2019 12:26:36 -0400 Original-Received: by mail-ot1-x334.google.com with SMTP id e11so11511319otl.5; Mon, 07 Oct 2019 09:26:36 -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=x1zh6wU2ZHQL46HF6QnkyAGVCZCq7sW0pH1Y8b8vFyQ=; b=YKrgQiNjnL+W0IhjPtyE6FHPAhAfuvnzbI1qKvcNRQd83YZvgA//zrMywMpzXtkAcT 8N+B6oOqRwFAMgg+A+qk8MpLZrr4bC5ZY+62E51M5vI1+XRK62/AQBAul3mEDGNPVwPN j4RlYXb3PzMpfTvLiwud+x8xx7QS7At+b3CFViUmlXBwCsOa7MFIB4B7JBLvWETD83R6 5nJrT4FWxtUxKUCQFbkASdrCfMiFyXBAUSPNT0NFftDoDyBqnofBWEGhOWGHEMk3lJPv 7mL2+uRoTlHz7lbosYLEx2AwsbmDeFrYrc3Spk2vGp/2ZPU61gu3zzpub2VIDl0bdgm2 QWDg== 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=x1zh6wU2ZHQL46HF6QnkyAGVCZCq7sW0pH1Y8b8vFyQ=; b=qQQKWUZby7p9PDFuc8z4A/tWQ/fO34ah3KJkz2uZnGsWiwCHtXOn8cHuDS9SWUrkNX RP6uXqzfPHLAIolZLQKQdgcQNFD4k6Rf3XrihSRLSgo/H1JLmOGXY/Lf3ODo9DUMqLeH KGtia5YT3A8qH9QY9wiSPVpYQR2Ic+aBKFHxL3dQtjZ9ikupqUpsqgVAsEyMhLBm0wf6 Z6SlsNyy0E22E3yy/H+NRH9sFMO2aj7iGC5dAxGL9tmVwHHvW400ZfmsWdZqFejfJs6t hoKre4CBnkDwH7AwBN7XSLqmNaLafpTH/ptICmaL219kzgkmd47yif9Ix5IstqjFhdlV s3sQ== X-Gm-Message-State: APjAAAWyFLSU1Tfx7cm3KYa+HNEft2AXqbr4uGXa9/GuZWU0rOR7osaL M76fBQE6zJHzooLWOdTimpB8QkAuE6NCVdb2FjKdc4oX X-Google-Smtp-Source: APXvYqwbOfTcvc5Ia3perE6Nm58IgmMxh0Gr3zQM8p+ZtblCj3aCOO17V4Kb33sec0jU8zH7tDMoBYNJCTEgvZeQjcE= X-Received: by 2002:a9d:6c8f:: with SMTP id c15mr21871468otr.194.1570465594996; Mon, 07 Oct 2019 09:26:34 -0700 (PDT) In-Reply-To: <83wodgzfxj.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::334 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240708 Archived-At: --000000000000ebfe2405945483fd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I think the main reason is because sometimes, the entires of our program is not a python file, it might be launch of a docker image, a gunicorn application, even a background task etc. or it might be wrapped by some 3rd launcher. And sometimes it will coming through many steps before hit the break point. Eli Zaretskii =E4=BA=8E2019=E5=B9=B410=E6=9C=888=E6=97=A5 =E5= =91=A8=E4=BA=8C00:19=E5=86=99=E9=81=93=EF=BC=9A > > From: Lawrence Liu > > Date: Mon, 7 Oct 2019 12:33:17 +0800 > > Cc: Andrii Kolomoiets , emacs-devel@gnu.org > > > > I am a full time python developer and seems in my case mostly I am usin= g > the way as below: > > > > insert a > > > > import pdb; pdb.set_trace(); > > > > in my code bass and trigger the break point from other place (mostly > browser) and wait for the break point > > been hit. > > Any reason you don't use "M-x pdb" instead? > --=20 Best Regards Lawrence --000000000000ebfe2405945483fd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think the main reason is because sometimes,
<= div dir=3D"auto">
the entires of our program is = not a python file, it might be launch of a docker image, a gunicorn applica= tion, even a background task etc. or it might be wrapped by some 3rd launch= er. =C2=A0

And som= etimes it will coming through many steps before hit the break point.=C2=A0<= /div>


Eli Zaretskii <eliz@gnu.org>= =E4=BA=8E2019=E5=B9=B410=E6=9C=888=E6=97=A5 =E5=91=A8=E4=BA=8C00:19=E5=86= =99=E9=81=93=EF=BC=9A
> From: Lawrence Liu <smartlitchi@gmail.com>
> Date: Mon, 7 Oct 2019 12:33:17 +0800
> Cc: Andrii Kolomoiets <andreyk.mad@gmail.com>, emacs-devel@gnu.org
>
> I am a full time python developer and seems in my case mostly I am usi= ng the way as below:
>
> insert a
>
> import pdb; pdb.set_trace();
>
> in my code bass and trigger the break point from other place (mostly b= rowser) and wait for the break point
> been hit.

Any reason you don't use "M-x pdb" instead?
--
Best Regards
Lawrence
--000000000000ebfe2405945483fd--