jorgenschaefer / elpy

Emacs Python Development Environment
GNU General Public License v3.0
1.89k stars 259 forks source link

any plans for integrating debugging and profiling capabilities? #956

Open kirk86 opened 8 years ago

kirk86 commented 8 years ago

hi everyone, I would like to ask a question regarding future plans of elpy to integrate debugging and profiling capabilities. I know that anyone with knowledge of elisp can do it by itself but it would be nice for people who have no idea about elisp to have something working out of the box with elpy.

For instance something like creating functions for debugger and profiler and bind them into some elpy kbd.

For instance pycharm is using free python debuggers and profilers from pip and which has just wrapped them nicely for the end user using computation graph, source profiling and smart navigation from your computation graph to actual source.

I've included some images for inspiration. It would be great to see something like that either on elpy or as an emacs package.

screen shot 2016-08-18 at 2 47 21 pm

screen shot 2016-08-18 at 2 47 31 pm

screen shot 2016-08-18 at 2 47 42 pm

screen shot 2016-08-18 at 2 47 55 pm

gopar commented 8 years ago

What debuggers does PyCharm use? The only one that i was able to find was this one and I didn't see any documentation for it.

jorgenschaefer commented 8 years ago

Hello, and thanks for the suggestion! Emacs comes with pdb support (M-x pdb) which might or might not be close to what you're looking for. In principle, I'd be interested in more integration there, but I have no concrete plans to add anything further related to this to Elpy at the moment.

kirk86 commented 8 years ago

Hi thanks for the reply. I wish I knew elisp to contribute but I'm not at all familiar. @gopar I'm not sure either but I think they are just using what everyone else uses, the open source compilers and profilers that already exist for python but they've just integrated and wrapped them nicely for the user.

gopar commented 8 years ago

@kirk86 everyone uses a different debugger :P The only debugger that comes built into python and is accessible to everyone is pdb and not everyone uses that. That's why 3rd party debugger exists.

I don't know anything about profiling so I can't comment there.

gopar commented 7 years ago

I recently went to PyCon and talked to a person who works in building PyCharm. From what I understood, there's no feasible way to add the PyCharm debugger to Emacs, even if it is open source. It's heavily tied to PyCharm.