realgud is a debugger front end. It is a potential replacement for gud
Questions tagged [realgud]
20 questions
7
votes
3 answers
Is there a package to simplify clickable text?
I'm writing a debugger front end, and in that over the course of program execution a number of marks get added inside the source code. In other buffers such as a buffer showing execution history, or a buffer containing backtrace or callstack, I'd…

rocky
- 888
- 7
- 26
5
votes
0 answers
Emacs/realgud/Python: How to display variables at each step?
Using emacs and realgud one can have a separate buffer that automatically shows where the program is currently stopped (by displaying that line of source code).
Is there an easy way to get realgud to display a list of variables/expressions…

MikeTheTall
- 659
- 4
- 11
5
votes
3 answers
ipdb displaying ansi color escape sequences
I'm trying to set up realgud using ipdb with emacs. The problem is that the following is displayed at the command prompt (running realgud:ipdb): [6n[Jipdb> [6D[6C[6D[J[6n[Jipdb> [6D[6C
From googling around, I came across various links that I think…

Andrew Winterbotham
- 221
- 2
- 7
5
votes
2 answers
Can't get realgud to work with pdb
So I have opened a buffer where a python script is loaded.
I do M-x load-library RET and after that realgud:pdb. Then I get pdb /path_to_script/main_func.py which is ok. After pressing enter I get the error (file-error "Searching for program" "No…

daeda
- 439
- 3
- 10
4
votes
2 answers
realgud pdb-remote and ipdb-remote not working
I've just set up realgud to use pdb and ipdb. It works fine when running a python process on my own machine. The probblem though is that when running a python process (a Pyramid web app) from within a virtualenv inside a virtual machine (using…

Andrew Winterbotham
- 221
- 2
- 7
3
votes
0 answers
debugging: how to optimize a RealGUD workflow
I code in Python and I my workflow uses debuggers (I coded for 8 years in Matlab).
I develop numerical simulation codes: most of the time it returns a result, the question is: "Is the result right?"
Consequently, I use the debugger to track…

Robin Tournemenne
- 81
- 4
3
votes
1 answer
highlight breakpoints with pdb
I use pdb with gud to debug python scripts. I am just wondering if there is way to highlight the lines with breakpoints? For example, in some screenshots of gud-gdb, some people seem to have red circles to the left of lines with breakpoints. How to…

user69818
- 133
- 6
3
votes
0 answers
Why don't I get a source window using realgud:gdb?
using GNU Emacs 25.2.1 (x86_64-w64-mingw32) and realgud 20171006.1840 (from marmalade), I can't use realgud for debugging with gdb: I start it as described in the docu:
M-x load-library RET realgud RET
realgud:gdb
In the "Start like this"-Prompt, I…

Markus
- 471
- 2
- 12
2
votes
1 answer
realgud pdb with .dir-locals.el
I'm trying to use directory local variables so my realgud:pdb invocation can be:
Run pdb (like this): /home/username/work/place/environments/default/bin/python -m pdb /home/username/work/place/scratch.py
Instead of :
Run pdb (like this): python -m…

Mittenchops
- 289
- 1
- 8
2
votes
1 answer
how to change realgud:pdb pdb command
emacs' GUD (GrandUnifiedDebugger) provides way to change get pdb command name by using.
(setq gud-pdb-command-name "python -m pdb")
is there the way to do same with realgud

rho
- 243
- 2
- 10
2
votes
1 answer
getting a process buffer for an eshell buffer
To get a process buffer an eshell buffer I thought I used to be able to run:
(get-buffer-process (current-buffer))
In Emacs 25 this no longer works. Specifically "GNU Emacs 25.1.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of…

rocky
- 888
- 7
- 26
2
votes
1 answer
How to prevent realgud:pdb with arbitrary command absolutizing paths
realgud seems to want to guess the path of the second argument of the command supplied to M-x pdb (or M-x realgud:pdb). When I'm visiting a buffer in /some/path/foo.py, without realgud:
(hiding the long docker command here -- the ... should be…

Croad Langshan
- 3,192
- 14
- 42
2
votes
1 answer
How can I tell if a buffer is a comint buffer, eshell buffer or neither?
I have Emacs Lisp program that I want to work inside either a comint process buffer or an eshell buffer. The code I currently am using is:
https://github.com/rocky/emacs-dbgr/blob/master/realgud/common/track-mode.el#L141-L147
but this is a bit ugly…

rocky
- 888
- 7
- 26
1
vote
1 answer
realgud sets wrong path through tramp when setting breakpoint through GUI
I'm on my Windows machine with a file open on a remote linux server through tramp. I'm using realgud:gdb to debug my C++ file. In the (gdb) prompt, I can set breakpoint just fine using
(gdb) b /path/to/file.cpp:line_number
(note that the path…

JakeTuero
- 11
- 1
1
vote
1 answer
How to modify a file you're debugging with realgud
I understand mechanically from here:
debugging: how to optimize a RealGUD workflow
How to edit code in the source window using realgud?
I can use C-x C-q to disable read-only mode on the python file I am debugging. I can then make changes and use…

Mittenchops
- 289
- 1
- 8