Re: [gbd-dev] gubed under Windows/IIS
Status: Beta
Brought to you by:
mccabe
From: Linus M. <Li...@mc...> - 2005-06-26 18:47:42
|
On Sunday 26 June 2005 19.28, Brett Serkez wrote: > In order to support previous and current versions of our project, I am > attempting to run Gubed under Windows/IIS. So far this has been an > exercise in frustration, I'm wondering if it has ever been run under > IIS? I have run it on windows 2000 with IIS at one point, but lately i've only used apache when testing windows compatibility (since i don't have access to iis at home) > Looks like StartSession.php is hopelessly confused about directories. > Gubed looks like it off by one directory, with a bit of manual > overriding I can coax it to find the target php file, but then it is > confused about finding its own files and I have yet to see the target > php file in the debugger. I see the call to apache_lookup_uri() which I Are you using CVS or 0.2.0? There was a bug reported recently that's fixed in CVS where I had been using the wrong directory separator when setting the path. See: <http://cvs.sourceforge.net/viewcvs.py/gubed/Gubed/ServerScripts/Gubed.php?r1=1.6&r2=1.7> <http://cvs.sourceforge.net/viewcvs.py/gubed/Gubed/ServerScripts/GubedFunctions.php?r1=1.13&r2=1.14> (at the bottom) <http://cvs.sourceforge.net/viewcvs.py/gubed/Gubed/ServerScripts/GubedGlobals.php?r1=1.7&r2=1.8> I'm not sure it's a solution to your problem, but worth testing. Also, have you used slash replacement in the pathmapper dialog? The apache_lookup_uri was added to support apache aliases, it shouldn't be required in other cases but ofcourse, there might be sideeffects that im not aware of. > believe is compensating for this confusion when run under Apache. > > It looks like the reason why the soft-link works under Linux is that it > allows the target php file to be found with a relative path but also the > underlying operating system understands the files true location and > allows the gubed helper scripts to be located. Yes. But StartSession and the scripts debugged shouldnt need to be in the same directory. Do you have a similar setup with using developers home directories on windows? > Before I continue, I was hoping there was some sage advise, that I > missed something fundamental. > I was also wondering how to debug Gubed > itself? Now, this is tricky ;) I've never used Gubed to debug Gubed, I guess in theory it might be possible, but I'm not sure I want to try - it would get complex. You might be able to do it with another debugger like xdebug, but i havent tried this neither. So far, I've survived on echo's, die's and things like: gbdSendCommand("status", Array('message' => 'Shouldn\'t be here: %1%, %2%', 'args' => 2, 'arg1' => $gbdScriptname, 'arg2' => $gbdLine)); Also, when debugging a script, you can watch gubeds internal variables by watching $GLOBALS['gbd'] /Linus > > Brett > > > ------------------------------------- > Brett C. Serkez, Technical Trainer > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Gubed-devel mailing list > Gub...@li... > https://lists.sourceforge.net/lists/listinfo/gubed-devel |