[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] Directory Mapping dialog EVERY time I debug after
From:       Kimberly Lazarski <kim () biyn ! com>
Date:       2005-03-20 5:30:18
Message-ID: 1111296618.16758.16.camel () kim2p3lin ! biyn ! local
[Download RAW message or body]

On Fri, 2005-03-18 at 13:29, Linus McCabe wrote:
> Hi!
> 
> The mapping dialog will pop up in case Quanta thinks the base directories are 
> wrong. 
> If the server tells quanta an error occured in file /var/www/index.php and 
> quanta translates this to /var/www_server/index.php 
> and /var/www_server/index.php doesent exists, the dialog show up, for 
> example.

The GubedTest project is located under /srv/www/htdocs/Gubed/GubedTest/
so I set the basedirs to that directory. 

The preview prefix is configured to http://localhost/Gubed/GubedTest/

When I preview
http://localhost/Gubed/GubedTest/tests/variables/index.php the preview
launches correctly as it did in 3.3.2.

When I try defining a breakpoint in
/srv/www/htdocs/Gubed/GubedTest/tests/variables/index.php it prompts me
for the basedirs,

I tried changing the project basedirs to
/srv/www/htdocs/Gubed/GubedTest/tests/variables/ and it still prompts me
every time I set a breakpoint or launch the debugger.

Even if this were to solve the problem it would not be workable for a
project like phpbb or OS Commerce or any other web app that isn't a flat
directory.

In order to rule out permissions I did chmod -R 777
/srv/www/htdocs/Gubed and it still prompts with that dialog.

No translation should be taking place since all of the files are local,
and they are not symlinks.

Also to rule out any possible syntax changes in the project file, I
deleted the original project and created a new one.

> 
> The above sample is more or less a safe assumption that something is wrong 
> with the basedirs - if the file doesent exist locally quanta cant open it and 
> requests a different mapping.
> 
> The opposite, which you're experiensing, is a bit more tricky. Since quanta 
> cant validate if a file exists on the server, it will rely on wether the 
> basedirs led to any translating or not. So, if you tell quanta to set a 
> breakpoint in /var/www_server/index.php, but running that path throught the 
> basedirs doesent return a different path, Quanta assumes the basedirs had no 
> effect. Then it will run through previously maps made in the mapping dialog 
> and see if there are any matches there. If there isnt, it will pop up the 
> dialog.
> 
> So, first of all, check your basedirs again to verify they're correct. Alot of 
> problems reported have resolved themselfes with adjusted basedirs.

I ran into this with 3.3.2 and since I couldn't RTFM (there is no real
FM to R ;)) I posted to the list and werner was kind enough to point me
in the right direction and it solved the problem then.

> 
> If they indeed are correct, when you get the dialog, try to type there the 
> same basedirs you had in project settings and look at the example to make 
> sure it turns out ok. 
> 
> If this doesent help, please elaborate on things like: What are your basedirs, 
> what is the (real) filename of the script on the server and where is the 
> script mapped on your local machine.
> 

see above

> If it works when you put the same dirs in the mapping dialog as you had in the 
> project settings, please let me know - then it's clearly a bug.

It works even if I just cancel the dialog, but it's hard to debug when
the dialog pops up on every breakpoint, every time the debugger loads a
file, and every time it stops on a breakpoint - hence my trying to
resolve this with the Gubed test project first. 

incidentally, while debugging, does Quanta *have* to draw each file and
each line as it is debugging? This slows execution down terribly. On
Windows with ASP.net, Visual Studio doesn't do this unless stepping
through - it just runs and when it encounters an error or a breakpoint
it just draws the file in question and brings focus to that line of code
- execution while debugging is nearly as fast as release mode.

> 
> Regarding the side issue, i have no idea :)

Side issue is resolved thanks to Andras' (thanks!) suggestion pointing
me in the right direction. It seems that although one of the libraries
was installed it didn't link correctly,

Thanks for the reply Linus.

--Kim

> 
> cheers
> 
> /Linus
> 
> On Friday 18 March 2005 05.49, Kimberly Lazarski wrote:
> > Distribution: Suse 9.1
> >
> > I just upgraded from KDE 3.3.2 to 3.4.0, and ditto for Quanta Plus.
> > Some of the behavior is very different
> >
> >
> > EVERY  I set a breakpoint, I am prompted with the Directory Mapping
> > dialog. EVERY time I unset(!) a breakpoint, I am prompted with the
> > Directory Mapping dialog. EVERY time I launch a browser session, I am
> > prompted with that Directory Mapping dialog - MULTIPLE multiple times.
> >
> > The base directories are configured in the project properties. The
> > project in question for the purpose of this conversation is the sample
> > test projects which come with Gubed (the live projects were driving me
> > BATTY so I created one with the Gubed test scripts - *whew* it's not me,
> > it's Quanta).
> >
> > Isn't the project property setting supposed to drive this? Isn't that
> > what Project Properties is there for? What am I doing wrong?
> >
> > These same projects worked properly in Quanta Plus 3.3.2 prior to the
> > upgrade.
> >
> > Side issue: Another thing I notice is that when I launch Quanta, I get a
> > dialog reading:
> >
> > "Some applications required for full functionality are missing: -Control
> > Center (kdebase) - preview browser configuration will not be available"
> >
> > KDE base is most definitely installed (I wouldn't be able to run kwin,
> > kate, or anything else which remotely depends on kde otherwise) and I am
> > staring at the Control Center, and one of the first things I did after
> > the 3.4.0 upgrade (via YaST) was tweak Konqueror to my liking.
> >
> > Odd.
> >
> > Any ideas?
> >
> > --Kim
-- 
No virus found in this email - I run Linux. ;)
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic