How can I debug Home Assistant within a Python IDE?

589 views
Skip to first unread message

Gael

unread,
Aug 8, 2015, 8:53:36 AM8/8/15
to Home Assistant Dev
Hello,

I can't manage to debug Home Assistant within Pycharm or Liclipse. 
Could you please explain me how to do that?
Do I need to use another debugger?

In the meantime, thank you for making this great project!

Regards,

Gaël

Guillem Barba Domingo

unread,
Aug 8, 2015, 11:51:42 AM8/8/15
to home-assi...@googlegroups.com

I think Python debuggers (pdb at least) doesn't wprk very well in multi thread aplications

Guilem Barba

El dia 08/08/2015 14:53, "Gael" <duran...@gmail.com> va escriure:
--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.
To post to this group, send email to home-assi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/home-assistant-dev/1c9fc4fd-6e11-4667-bb09-2cee0f3c1aeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Paulus Schoutsen

unread,
Aug 8, 2015, 12:09:03 PM8/8/15
to home-assi...@googlegroups.com

I do this :
import IPython
IPython.embed()

Will get you a console at that location


Gael

unread,
Aug 8, 2015, 12:19:14 PM8/8/15
to Home Assistant Dev
OK, thanks.
Could you tell me how you manage Home Assistant debugging then? I like discovering a new project by debugging step by step while the application is running.

Gaël


Le samedi 8 août 2015 17:51:42 UTC+2, Guillem Barba Domingo a écrit :

I think Python debuggers (pdb at least) doesn't wprk very well in multi thread aplications

Guilem Barba

El dia 08/08/2015 14:53, "Gael" <duran...@gmail.com> va escriure:
Hello,

I can't manage to debug Home Assistant within Pycharm or Liclipse. 
Could you please explain me how to do that?
Do I need to use another debugger?

In the meantime, thank you for making this great project!

Regards,

Gaël

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsub...@googlegroups.com.

Gael

unread,
Aug 8, 2015, 12:33:52 PM8/8/15
to Home Assistant Dev
Thanks for sharing this very useful information.

Le samedi 8 août 2015 18:09:03 UTC+2, Paulus Schoutsen a écrit :

I do this :
import IPython
IPython.embed()

Will get you a console at that location


On Sat, Aug 8, 2015, 08:51 Guillem Barba Domingo <guille...@gmail.com> wrote:

I think Python debuggers (pdb at least) doesn't wprk very well in multi thread aplications

Guilem Barba

El dia 08/08/2015 14:53, "Gael" <duran...@gmail.com> va escriure:
Hello,

I can't manage to debug Home Assistant within Pycharm or Liclipse. 
Could you please explain me how to do that?
Do I need to use another debugger?

In the meantime, thank you for making this great project!

Regards,

Gaël

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-dev+unsub...@googlegroups.com.

Paulus Schoutsen

unread,
Aug 8, 2015, 4:23:25 PM8/8/15
to home-assi...@googlegroups.com
A good place to get started is the documentation. Have a look at the architecture: https://home-assistant.io/developers/architecture.html

The log will also show you a timeline of when each action occurred. 

On Sat, Aug 8, 2015 at 9:33 AM, Gael <duran...@gmail.com> wrote:
Thanks for sharing this very useful information.

Le samedi 8 août 2015 18:09:03 UTC+2, Paulus Schoutsen a écrit :

I do this :
import IPython
IPython.embed()

Will get you a console at that location


On Sat, Aug 8, 2015, 08:51 Guillem Barba Domingo <guille...@gmail.com> wrote:

I think Python debuggers (pdb at least) doesn't wprk very well in multi thread aplications

Guilem Barba

El dia 08/08/2015 14:53, "Gael" <duran...@gmail.com> va escriure:
Hello,

I can't manage to debug Home Assistant within Pycharm or Liclipse. 
Could you please explain me how to do that?
Do I need to use another debugger?

In the meantime, thank you for making this great project!

Regards,

Gaël

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Home Assistant Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to home-assistant-...@googlegroups.com.

To post to this group, send email to home-assi...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
It's nice to be important but it's more important to be nice.
Reply all
Reply to author
Forward
0 new messages