# Use IDE to Debug Python Code?

**URL:** <https://forums.plex.tv/t/use-ide-to-debug-python-code/112741>\
**Category:** Dev/API Corner\
**Tags:** plugin-dev\
**Created:** [August 22, 2015, 1:04am UTC](https://forums.plex.tv/t/use-ide-to-debug-python-code/112741 "2015-08-22T01:04:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmorris](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rmorris/32/13669_2.png) [@rmorris](https://forums.plex.tv/u/rmorris)\
**Post date:** [August 22, 2015, 1:04am UTC](https://forums.plex.tv/t/use-ide-to-debug-python-code/112741/1 "2015-08-22T01:04:32Z")

</div>

Hi,

I really think using an IDE would help when developing / debugging a plug-in … or at least it would help me … ;). Has anyone had any luck with this? Not sure how to “attach” it to PMS, so that when my code is called the IDE is activated.

Thanks!

---

<div class="post-metadata">

**Author:** ![mmccurdy](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mmccurdy/32/83290_2.png) [@mmccurdy](https://forums.plex.tv/u/mmccurdy)\
**Post date:** [August 22, 2015, 9:06am UTC](https://forums.plex.tv/t/use-ide-to-debug-python-code/112741/2 "2015-08-22T09:06:12Z")

</div>

Unfortunately this is non-trivial due to the way the Framework bootstraps the plug-in code. At the moment, each plug-in runs in its own process, and I’ve been unsuccessful connecting debuggers to those. I wouldn’t say it’s impossible, but I’m pretty sure no one (including people who work with these things all day long) has done it.

---

<div class="post-metadata">

**Author:** ![rmorris](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/rmorris/32/13669_2.png) [@rmorris](https://forums.plex.tv/u/rmorris)\
**Post date:** [August 22, 2015, 12:00pm UTC](https://forums.plex.tv/t/use-ide-to-debug-python-code/112741/3 "2015-08-22T12:00:33Z")

</div>

Makes sense, and I do know it can be difficult (understatement … ;)). Thanks for the quick reply!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:50pm UTC](https://forums.plex.tv/t/use-ide-to-debug-python-code/112741/4 "2020-01-08T19:50:44Z")

</div>

Closed on January 8, 2020, 7:50pm UTC


