Phil, When I use emacs, I just use it for editing code -- I use the UI listener for testing, debugging, etc. Slava uses it the same way.
So, to debug your code you'd just fire up the walker with ctrl-w or put a in a breakpoint like: > "mydir" [ "foo" [ B some-code ] with-variable ] with-directory reload and run it. You can look at the state by clicking pressing V or clicking the variables button. If you want to mess with stuff, right click "Push" the data to a UI listener datastack. Your listener trick is pretty cool, so maybe the old behavior could be supported as well. Doug On May 28, 2009, at 8:58 AM, Phil Dawes wrote: > Hi Factor List, > > Another one of those 'am I missing something?' posts: > > I use emacs for development (fuel rocks!) and in the past I've found > it > handy to nest listeners for debugging code. I even wrote about it > here: > http://phildawes.net/blog/2008/09/05/nesting-repls-in-factor/ > > However I just noticed that 'listener' now starts with a new empty > datastack which means I can't use it in this fashion. It's easy to > code > around but I assume this means nobody else does the listener nesting > thing and so wondered what emacs people do use for debugging these > days? > > E.g. if you have: > > "mydir" [ "foo" [ some-code ] with-variable ] with-directory > > how would you step through the 'some-code' word to debug it? > > Cheers, > > Phil > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity > professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like > Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
