Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't execute external commands (!) when running pdb in python consoles #2058

Closed
spyder-bot opened this issue Feb 17, 2015 · 2 comments
Closed

Comments

@spyder-bot
Copy link
Collaborator

From pieter.e...@gmail.com on 2014-11-19T03:43:53Z

Within the python console, after entering the pdb debugger, the execute statement (!) runs a command in the external command shell, and not as a python statement. This is not the case the the ipython shell.

How can I revert pdb back to the default behaviour? An example is included below:

Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Imported NumPy 1.8.2, SciPy 0.14.0, Matplotlib 1.3.1

Type "scientific" for more details.

import pdb; r=1;
1/0
Traceback (most recent call last):
File "", line 1, in
ZeroDivisionError: division by zero
pdb.pm()
(1)()
(Pdb) !r

(Pdb) /bin/sh: 1: r: not found

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2058

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-01-01T14:52:59Z

This is a bug, I'll fix it for our next release.

Summary: Don't execute external commands when running pdb in python consoles (was: pdb in python console)
Labels: Cat-Debugger MS-v2.3.3

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-01-08T15:18:08Z

Labels: -MS-v2.3.3 MS-v2.3.4

@ccordoba12 ccordoba12 changed the title Don't execute external commands when running pdb in python consoles Don't execute external commands (!) when running pdb in python consoles Mar 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants