Grand Unified Debugger
Questions tagged [gud]
43 questions
9
votes
2 answers
How can I prevent gdb *input/output* buffer from aggressively popping up in frame?
When using gdb with M-x gdb, the *input/output* buffer always pops up aggressively in any frame which has focus and isn't already displaying it. I would like the *input/output* buffer to stay quietly in the background unless I manually bring it…

ajp
- 393
- 1
- 9
9
votes
0 answers
gud: highlight breakpoints with custom debugger
I use go-dlv to debug Go programs. This package is very simple and relies on standard gud functionality (https://github.com/benma/go-dlv.el/blob/master/go-dlv.el)
One thing that I found missing is highlighting of breakpoints.
Is there any easy way…

kostya
- 503
- 4
- 6
6
votes
0 answers
How to map file paths when using docker
I'm running code in development using docker. I do that using the -v flag to docker run to mount my code in the container.
I've set directory-abbrev-alist and configured compilation-error-regexp-alist-alist appropriately, so I can click on links in…

Croad Langshan
- 3,192
- 14
- 42
6
votes
2 answers
How do I change the working directory used by pdb/gud?
When running M-x pdb from Emacs, the current directory seems to be set to that of the directory of the script you are running, so
pdb ~/path/to/project/__main__.py
Would set the working directory to ~/path/to/project/. However, what if I need the…

elethan
- 4,755
- 3
- 29
- 56
5
votes
2 answers
How to set gud gdb -i=mi not to replace current buffer?
When using gdb -i=mi to debug a program, I typically split the window into two buffers vertically. But every time my program prints something gud automatically replaces my source code buffer with I/O buffer and pops up a new "frame" that contains my…

Mingheng Wang
- 53
- 4
5
votes
1 answer
Customizing the layout of gdb-many-windows
I really like all of the information that is available to me when I run GUD/GDB with gdb-many-windows, but I would like to be able to move the windows around some. Specifically I would like to use the following layout
…

nispio
- 8,175
- 2
- 35
- 73
4
votes
0 answers
Debugging in Unity3d with emacs?
I develop in Unity, and have been using emacs as my text editor for development. Debugging however has always needed to be done through monodevelop (and it crashes half the time while doing this). My team finally updated our unity version and that…

HHoverton
- 63
- 4
4
votes
0 answers
Is it possible to debug Django from gud-pdb?
Brand new to gud/pdb and I am trying to run the Django development server from emacs. I can't seem to set breakpoints that affect the running server, though.
I am invoking PDB with M-x pdb, then running it like python -m pdb manage.py runserver…

Michael S
- 41
- 3
4
votes
3 answers
How do you break a running program under gud?
In the vanilla gdb interface, I can hit C-c to break the running program, insert breakpoints, etc., and then run continue to resume execution of the program being debugged. Is this possible with gud? C-c C-c in gud actually sends SIGKILL to the…

mgalgs
- 464
- 4
- 12
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
2
votes
1 answer
How can I delete all the gdb related windows/buffers after `q` in gdb CLI window
I use (setq gdb-many-windows t) and (setq gdb-show-main t) configurations in my init.el, so after executing M-x gdb, there will be six windows in the frame, after typing q in the main gdb cli window to finish debugging, how can I quit/delete all the…

CodyChan
- 2,599
- 1
- 19
- 33
2
votes
1 answer
Show breakpoints when debugging Matlab
I am using matlab-emacs to debug a matlab script from inside of emacs with GUD. Everything seems to be working as expected except that I don't see any breakpoint indicators in the fringe.
This is important to me for two reasons:
It is nice to…

nispio
- 8,175
- 2
- 35
- 73
2
votes
2 answers
Highlight current line in GUD disassembler window
I am using GUD for debugging C code. Because many of the lines and variables have been optimized away, it is necessary to follow the C source and the corresponding disassembly simultaneously. I want the current line in the disassembler window to be…

nispio
- 8,175
- 2
- 35
- 73
2
votes
1 answer
gdb-many-windows causes hangs in emacs 24.5
When running gdb -i=miand then attach to the process for debugging, emacs hangs for like 5 minutes before I can type anything. After trial and error I found it is caused by the following line in my init.el file:
(setq gdb-many-windows t)
Start…

cdnszip
- 347
- 1
- 7
2
votes
1 answer
Is gud working at all in emacs 24?
I am trying to switch from vim to evil mode and got very far. The last thing what is missing is debugging with "gdb". I want to be equally productive as with clewn in vim (this means source level debugging, not a bare command line interface). So I…

kilian
- 31
- 2