Questions tagged [realgud]

realgud is a debugger front end. It is a potential replacement for gud

Filter by
Sorted by
Tagged with
7 votes
3 answers
1k views

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 ...
rocky's user avatar
  • 898
5 votes
2 answers
990 views

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 ...
daeda's user avatar
  • 439
5 votes
3 answers
385 views

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 ...
Andrew Winterbotham's user avatar
5 votes
0 answers
468 views

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 ...
MikeTheTall's user avatar
4 votes
2 answers
1k views

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 ...
Andrew Winterbotham's user avatar
3 votes
1 answer
1k views

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 ...
user69818's user avatar
  • 133
3 votes
0 answers
1k views

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?" ...
Robin Tournemenne's user avatar
3 votes
0 answers
303 views

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 ...
Markus's user avatar
  • 481
2 votes
1 answer
138 views

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/...
rocky's user avatar
  • 898
2 votes
1 answer
320 views

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-...
rocky's user avatar
  • 898
2 votes
1 answer
265 views

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's user avatar
  • 253
2 votes
1 answer
161 views

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....
Mittenchops's user avatar
2 votes
1 answer
511 views

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 ...
Croad Langshan's user avatar
1 vote
1 answer
189 views

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 ...
Mittenchops's user avatar
1 vote
1 answer
2k views

How to dynamically alter defface foreground and background?

In realgud, there are fringe indicators used to show what position the debugged program is stopped at. However the face for the bit map is statically created and the background/foreground colors for ...
rocky's user avatar
  • 898
1 vote
1 answer
75 views

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/...
JakeTuero's user avatar
0 votes
1 answer
99 views

Realgud to default to my most recent python executable

When I run realgud for python debugging, with: M-x realgud:pdb I see this prompt: Run pdb (like this): python -m pdb /home/username/work/place/scratch.py I'm using a conda environment installed in ./...
Mittenchops's user avatar
0 votes
0 answers
53 views

python source code with using realgud:gdb and pdb

Following invokes pdb in shell. I have to type list to look at the python source. Instead is there a way to open the python source file, just like how the c++ source file is opened when a gdb ...
user40923's user avatar
0 votes
0 answers
44 views

Call realgud from certain directory

I need to call realgud from a certain directory, because my python cant be called from another directory. How do I do that? I need to call it from a root directory and my python program where the main ...
David's user avatar
  • 297
0 votes
1 answer
335 views

How to edit code in the source window using realgud?

I've started using realgud:pdb for python debugging in emacs: https://github.com/realgud/realgud When you begin a realgud session, it opens a command window and a source window. Keys like 'n' and 'b'...
Mittenchops's user avatar