-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Getting started with RealGUD and ipdb #96
Comments
When it says |
Thanks @rocky . Seeing your point, I tried entering the following command on the prompt that i get from
but I end up with:
However, if I run that same command (i.e. |
realgud parses your debugger command invocation and it's messing up badly here. And admittedly this is kind of tough situation to parse. So why not just create a shell script and call it #!/bin/bash
/Users/amelio/anaconda/bin/ipython -c "%run -d $@" and then when it prompts for a command that starts ipdb you have something easy to give it. The other thing I do, is just start inside a shell and then run |
Thanks. That worked great! 👍 I added the script to PATH and now everything works well. For anyone using IPython, I found the combination of RealGUD with isend-mode](https://github.com/ffevotte/isend-mode.el) really useful:
The latter is helpful to grow code organically (i.e. run the debugger until you reach the portion of the code that you are working on, and then use |
Glad you got this working. I don't know that much about ipdb.
Why not add a page to the wiki with your suggestions? That way others will be able to learn from your wisdom. Thanks. |
Hi everyone...
Then Sorry for post here, I should put a question on Emacs StackExchange?? |
The message says that GNU emacs can't find For example suppose it is in
|
Works! Great, thanks for the answer. Open a new buffer called ipdb script.py shell. |
Since you can have several ipdb debugging sessions, buffers have to have somewhat unique names. I don't know if this answers your question, because I don't understand your question or concern. |
Sorry. My question is, why I cannot write just |
Does |
Yes, it works in a terminal. For some reason, GNU Emacs can't find |
@cactail You're not starting emacs from the terminal, are you? If so, then there's possibly a difference between the path that Emacs sees and the path that your terminal sees. Try |
You're right! My |
I installed RealGUD through MELPA and then followed these steps:
M-x load-library realgud
M-x realgud:ipdb
The last step above prompts me with:
Run ipdb (like this): ipdb <path_to_python_file>
If I then do
RET
, I get:(file-error "Searching for program" "No such file or directory" "ipdb")
I don't have
ipdb
in myPATH
(I do have the latest IPython, Python, etc). I am not sure there is supposed to be a binary foripdb
(is it?)Am I following these steps properly?
The text was updated successfully, but these errors were encountered: