Amelio Vazquez-Reina
Amelio Vazquez-Reina

Reputation: 96284

M-x breakpoints in python-mode in Emacs

I have read in a several places (e.g. here) that I can use M-x space to add/remove breakpoints in my python files when debugging with Emacs.

However, when I type M-x space once I have opened pdb on the file, Emacs prompts me with a large autocompletion list, as if I were to type any other M-x command

Q1:

How can I use M-x space to add or remove breakpoints once I have started a pdb session in Emacs?

Q2:

The top answer in the thread above says I should invoke the following two lines from pdb to use M-x space to add/remove breakpoints:

import sys
sys.path.append('/path/to/directory/containing/views.py')

but what is views.py? Is that something specific to Django?

Upvotes: 1

Views: 2773

Answers (1)

pmr
pmr

Reputation: 59811

I think you are mistaken. gud-break is set to C-x SPC (SPC means space). I guess this is just a typo in the linked post.

Upvotes: 3

Related Questions