All of lore.kernel.org
 help / color / mirror / Atom feed
* Developing hob/bitbake using PyDev
@ 2012-08-07  7:48 Iorga, Cristian
  2012-08-07  9:13   ` [poky] " Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Iorga, Cristian @ 2012-08-07  7:48 UTC (permalink / raw)
  To: poky@yoctoproject.org, yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 975 bytes --]

Hello,

Ha anyone use Pydev in order to develop hob or bitbake?
What I am basically interested in is:

1.      Doing remote debugging of hob.

2.      A feature similar to a "Fix and Continue" (change the code, and re-run it without re-running the entire hob from the beginning)

Now. I did a small investigation with help from Valentin Popa and Bogdan Marinescu.
Remote debugging seems possible, but we did not set it up (yet).
"Fix and Continue" we don't know if it exists in Python world, because of the way Pyhon (interpreter + base language works).
I.e.: Python: from module import spam
spam will be initialized after this one.
How Python will handle a reload or something similar in this case?

If anyone have any insights into this issues, please help me.

P.S.: Doing remote debugging of hob seems to need changes in hob/bitbake sources, which I guess would not be acceptable to be integrated into main branch, isn't it?

Thanks,
Cristian Iorga

[-- Attachment #2: Type: text/html, Size: 4369 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Developing hob/bitbake using PyDev
  2012-08-07  7:48 Developing hob/bitbake using PyDev Iorga, Cristian
@ 2012-08-07  9:13   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-08-07  9:13 UTC (permalink / raw)
  To: Iorga, Cristian; +Cc: yocto@yoctoproject.org, poky@yoctoproject.org

On Tue, 2012-08-07 at 07:48 +0000, Iorga, Cristian wrote:
> Remote debugging seems possible, but we did not set it up (yet).
>
> “Fix and Continue” we don’t know if it exists in Python world, because
> of the way Pyhon (interpreter + base language works).
> 
> I.e.: Python: from module import spam
>
> spam will be initialized after this one.
>
> How Python will handle a reload or something similar in this case?

Python can reload modules but you'd have to deactive anything using them
to be able to reload so you'd have to reset all the state. I therefore
suspect this aspect would be hard.

> If anyone have any insights into this issues, please help me.
>  
> P.S.: Doing remote debugging of hob seems to need changes in
> hob/bitbake sources, which I guess would not be acceptable to be
> integrated into main branch, isn’t it?

I'd not rule them out, particularly if how to use them was well
documented. We'd need something well thought out though for it to be
merged. It really depends on the kinds of changes needed and how
invasive they were.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [poky] Developing hob/bitbake using PyDev
@ 2012-08-07  9:13   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-08-07  9:13 UTC (permalink / raw)
  To: Iorga, Cristian; +Cc: yocto@yoctoproject.org, poky@yoctoproject.org

On Tue, 2012-08-07 at 07:48 +0000, Iorga, Cristian wrote:
> Remote debugging seems possible, but we did not set it up (yet).
>
> “Fix and Continue” we don’t know if it exists in Python world, because
> of the way Pyhon (interpreter + base language works).
> 
> I.e.: Python: from module import spam
>
> spam will be initialized after this one.
>
> How Python will handle a reload or something similar in this case?

Python can reload modules but you'd have to deactive anything using them
to be able to reload so you'd have to reset all the state. I therefore
suspect this aspect would be hard.

> If anyone have any insights into this issues, please help me.
>  
> P.S.: Doing remote debugging of hob seems to need changes in
> hob/bitbake sources, which I guess would not be acceptable to be
> integrated into main branch, isn’t it?

I'd not rule them out, particularly if how to use them was well
documented. We'd need something well thought out though for it to be
merged. It really depends on the kinds of changes needed and how
invasive they were.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-07  9:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-07  7:48 Developing hob/bitbake using PyDev Iorga, Cristian
2012-08-07  9:13 ` Richard Purdie
2012-08-07  9:13   ` [poky] " Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.