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
run -d message unclear #3464
Comments
I'm confused here - In IPython 1.0, I have to press 'c' in an |
My platform info: I do NOT have to press 'c' to start the script, as I did before, or, apparently, as you still do. @ivanov witnessed the behavior on my Mac at SciPy. @ivanov looked through the changelog, and said he found a change in that section of the code that looked like it was implemented by @tkf. |
Interesting. What do you get with from IPython.core.debugger import OldPdb
print OldPdb ? |
In [1]: from IPython.core.debugger import OldPdb In [2]: print OldPdb |
Just to confirm, if you don't press |
If I run a script with run -d, I used to be required to hit 'c' to start debugging the script. Now I'm debugging the script without hitting 'c', and if I do hit 'c', it runs the program to completion. This behavior is actually ok with me, since I never understood why I had to hit another key after "run -d". However, although the prompt at the top tells me that hitting 'c' will start my script, it actually finishes it. IPython session pasted below: In [1]: more hello.py print 'hello world.' In [2]: run -d hello.py
ipdb> c |
Not really, it just starts it - no statements have been run until you hit 'c'. The only difference seems to be that 1.0 skips over no-op lines, while 0.12 requires one extra 'c' to get started (thus two before a single line of code is executed). It is also not generally true that it "finishes" the script, because it will stop to debug at any breakpoints or exceptions. It only runs to completion in this case because there is no bug to "de-". Would changing "start your script" to "proceed with execution" be satisfactory? |
Sure - if the documentation matches the implementation, then I'm almost always happy. Plus, as I said, I actually prefer the current behavior - I just need to keep my fingers from reflexively hitting 'c' all the time :) |
clarify any ambiguity with 'start'. closes ipython#3464
clarify any ambiguity with 'start'. closes ipython#3464
Prior to 1.0.dev, (0.12.1), I had to hit 'c' to start the script:
With 1.0.dev, it behaves like this ('c' not required):
If this is the intended behavior, I suggest removing the misleading message.
Looks like @tkf implemented this change, @ivanov said to mention him.
The text was updated successfully, but these errors were encountered: