From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#25194: 25.1; Python debugger breakpoint error Date: Tue, 13 Dec 2016 17:08:54 +0100 Message-ID: <2169ee72-c607-b55e-07d8-208297e300da@easy-emacs.de> References: <87k2b487ic.fsf@aol.com> <87d1gw817u.fsf@aol.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1481644824 19381 195.159.176.226 (13 Dec 2016 16:00:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2016 16:00:24 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.4.0 To: 25194@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 13 17:00:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGpUz-0003ax-TJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2016 17:00:14 +0100 Original-Received: from localhost ([::1]:39154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGpV2-0004tW-Ft for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Dec 2016 11:00:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGpUt-0004qu-As for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 11:00:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGpUp-00036D-BB for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 11:00:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGpUp-000367-8b for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 11:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cGpUp-0008EB-1J for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 11:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Dec 2016 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25194 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148164478631578 (code B ref -1); Tue, 13 Dec 2016 16:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Dec 2016 15:59:46 +0000 Original-Received: from localhost ([127.0.0.1]:40888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGpUY-0008DG-Ao for submit@debbugs.gnu.org; Tue, 13 Dec 2016 10:59:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGpUW-0008D2-AD for submit@debbugs.gnu.org; Tue, 13 Dec 2016 10:59:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGpUQ-0002zA-6E for submit@debbugs.gnu.org; Tue, 13 Dec 2016 10:59:39 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41759) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGpUQ-0002z5-2k for submit@debbugs.gnu.org; Tue, 13 Dec 2016 10:59:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGpUO-0004Zd-RD for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 10:59:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGpUK-0002xg-SD for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 10:59:36 -0500 Original-Received: from mout.kundenserver.de ([217.72.192.74]:59053) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGpUK-0002xA-HG for bug-gnu-emacs@gnu.org; Tue, 13 Dec 2016 10:59:32 -0500 Original-Received: from [192.168.178.35] ([95.119.230.123]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LlnLU-1cqAEs2gOO-00ZMEh for ; Tue, 13 Dec 2016 16:59:30 +0100 In-Reply-To: <87d1gw817u.fsf@aol.com> X-Provags-ID: V03:K0:smW429G2llt/Qzm/iCBEe64IOOfWobOoquto3Gw65zJP/DU56Zb AAOQglX2YlTxW8XHz7IzGN286A/yTtsOFjuc5AZ+Vd6aZdhQ1m3NH9fY38ZsKca4tnWalPD 8+ir25yMfi6DaTCLzr/OLv+UptLgd4/YoEjyTgsgZBSMeqBG5nbchxQPQZeVy//xNSDXORe 5rk2WGtVFmxGP9ZCiQS0w== X-UI-Out-Filterresults: notjunk:1;V01:K0:YkDXo9BWraI=:bZezx5k94vdnYcvjfarypg VTCQf7/qxdlmPpWlNcjrhWQG6RDBan+iYeSiuZVJc/boJImDseoHLj4ThycS2Q/9a5bfyH99H 40MHL769HbnhxUVVPenJa37b1qOAYsD4Fe7woQ9ML8z+xCjjGA01gJmZUmHl1AtPJhqXfAhvA 3V90w08Z86vKlZiTwwT2lyNMab9+VAJUrxhn7bMDEdeVm1uKsvDJq74IUcZOrfVm+1DeqnfOO NwpFiUyQYftqahfspipRr3rYj/iJkM1rpKHaBCbX+AGrQF1QnPF75K6yXNSIPzDWn1KgkN+nE P+he/1yFsfvm3kiK2Tnxyo/Zb244cGj9St+AGmoDOMcrNXXLCL9hpD27PoGz/b+pOmdDWnVs2 b37iWwBVN3WCjeO/rOIKXXfPeLkpdE/Uom7NDszPoBFqzOh/Wp4C3XaVRpHYSVQl7Bh39NOGL 5zZW8MiKBuLntstWDxN2ZYjCZuwkzlZIQOMPN7juEtSO4P/wWRR21VIPpB3TB+oxhHz9wNh/0 poauHVoxmwHuWh8ytl44QohugOuVRf5K8Thdl4cZNH03TGevDUQYeJ57Z9ipE+y3mS9S/34Do OtwpHJte4C1nfDwIqHWiL33DwwWQgW9G7z9ET5vQaCt16s+duB516FPLo2ihH4bmc4GCqLojs cEktO0EqvVT35lU/c4aEz85OsvdW2QAErK77F8cTS6QpTC5a92qlFrzZZvJ3LQmzUNq5wQMd7 LBSeDbVyFwVaTJUU X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126982 Archived-At: On 13.12.2016 13:25, Live System User wrote: > Andreas Röhler writes: > >> On 13.12.2016 11:10, Live System User wrote: >>> Hi, >>> >>> When trying to debug a Python program, I get the following >>> error when trying to set a breakpoint: >>> >>> 0. emaccs -Q & >>> >>> 1. C-x C-f test.py >>> >>> 2. From the menubar: Python->Debugger >>> >>> Run pdb (like this): python -m pdb test.py >>> >>> 3. Click on "Next Line" so I can see a source line >>> >>> 4. Cick on "Set Breakpoint" >>> >>> I now get the error: >>> Wrong type argument: stringp, nil >>> >>> Turning on `debug-on-error' yields the same results. >>> However, on the *Messages* buffer there is a little more >>> information about the error: >>> >>> gud-format-command: Wrong type argument: stringp, nil >>> >>> How does one debug this problem further? >>> >>> Thanks. >>> > [...] >> Here it works calling just >> >> pdb test.py >> >> not "python -m"before > Normally, `pdb' is just a shell script that calls/execs > the Python debugger containing: > > exec $python -m pdb $1 $2 $3 $4 $5 $6 $7 $8 $9 > > > As described From the menubar: Python->Debugger That means being in an Emacs-buffer connected to Python-process in a special way. The command to insert must match the environment, but didn't. That's why "gud-format-command:" raised the error. IIUC `debug-on-error' adresses Emacs-lisp errors, not the Python-side. > > > >