From: Jeff A. <ja...@fa...> - 2019-07-10 20:17:19
|
Hi Bastian: You can modify an object from the debugger, so I guess you could replace a method. I think probably you don't mean that, but are referring to editing the source, recompiling it, and reloading it, somehow taking up execution at the corresponding point in the new program. No. All the functions and methods so created would be distinct objects from those in your run-time context beforehand. It would be the same in CPython. When you say: "We implemented this workflow prototypically in CPython." do you mean you created a modified CPython executable, or that it is something you find you can do with CPython as released? Jeff Allen On 10/07/2019 08:43, Bastian Kruck wrote: > Hi together, > > I'm not using the Jython, yet it is related work for my academic > research on python. I couldn’t find much on this by googling, so I > decided to ask here (to avoid stating things that are not true): > > 1) Does Jython support some kind of Edit-and-Continue workflow? > 2) Could I somehow modify a method in Jython while the debugger is > paused and then restart the stack frame to step into the modified method? > > Background: > > In a halted debugger, I might want to modify the current method, > reload it into the vm and then continue debugging without needing to > restart the application ("Edit and continue Debugging“). > > To do this, the .NET, JVM, JS, and Smalltalk vms provide a feature to > restart the current frame with the modified method. > > We implemented this workflow prototypically in CPython. > > Thank you for your replies, > Bastian > -- > IT-Berater > > Telefon: +49 (0) 711 / 34 21 91-0 > Mobil: +49 170 8893197 > > bas...@it... <mailto:bas...@it...> > http://www.xing.com/profile/Bastian_Kruck > http://www.itemis.de > > itemis AG > Niederlassung Stuttgart > Industriestr. 6 > 70565 Stuttgart > > Rechtlicher Hinweis: > Amtsgericht Dortmund, HRB 20621 > Vorstand: Jens Wagener (Vors.), Wolfgang Neuhaus, Abdelghani El Kacimi > Aufsichtsrat: Prof. Dr. Burkhard Igel (Vors.), Michael Neuhaus, > Jennifer Fiorentino > > > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev |