NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How do I set up dbg?


Joined: 26 Jul 2010
Posts: 6
Location: UK
Reply with quote
Sorry to have to ask this but I've spent about a whole day now trying to configure this DBG feature to work

Here is how I have things set up - I probably did something silly

OK I have one PC running apache - this is 192.168.0.3 on my LAN

This has a backup of my live site running for development work

My live site is a modified vbulletin forum

I have phpED installed on another PC on the lan 192.168.0.8

Everything seems to test out OK as far as I can tell (phpED tells me debugger is installed and working on the apache server)

I have a 'project' created pointing to the files in htdocs on 192.168.0.3 (my site backup)

I can open and edit these files from phpED on 192.168.0.8

I've installed this DBGbar thingy on mozilla on 192.168.0.3
In DBGbar options I have
Machine Clienthost:
Port 7869
and URL for debugging is http://localhost

When I log into my site backup like this (http://localhost/forums) on the 192.168.0.3 machine and I log into the backup forums OK

I've got the next page memberlist.php open in phpIDe with a breakpoint set

Now I browse for example to member search which I want to dubug (http://localhost/forums/index.php?pageid=qms)

I click on some options in the search fields

Then I am clicking the drop down list on DBGbar and selecting 'debug next page'

And submitting my form

Now at this point I've had several things happen.

Sometimes the next page appears on the browser in 192.168.0.3 and nothing happens in phpED on 192.168.0.8 (probably when I did something in the wrong order lol)

Sometimes I get this message pop up in phpED

'New dubug session with //localhost/forums/index.php has started. But IDE could not find the project for the web debugging. Breakpoints and other features may fail to work.'

this seems to happen when I have been timed out and dumped on the index.php page to log in again

Now WHY is it saying localhost/forums here - shouldn't that be 192.168.0.3/forums as that is the PC running the apache server, not localhost?


Sometimes I get a white screen in mozilla on 192.168.0.3 and phpED says 'New Workspace Swapscene:: [Stopped] [\\Logger\htdocs\forums\memberlist.php]' (Logger is the name of 192.168.0.3)

But I'm not sure now how to to through code and look at the valueof interesting variables - if I really do have a debug session working

If I hit 'run' then the next forum page displays in the phpED window instead of on 192.168.0.3 - which asks me to log in (as I am not logged into the forum form this PC) however I can't navigate the backup site properly now as a lot of page addresses say 'localhost/forums....' instead of 192.168.0.3/forums.....


So basically I am well confused by all this

I'd like to take advantage of special price offer to upgrade from my trial version of phpED (got 3 days offer left) but I need to make it work first. So what have I done wrong and how do I debug my backup form with dbg from this PC 192.168.0.8

Thanks
dicky
View user's profileFind all posts by swapsceneSend private message


Joined: 26 Jul 2010
Posts: 6
Location: UK
Reply with quote
OK here is a bit more info maybe it is something to do with all this

When I start a debug session from the browser on 192.168.0.3

I get something like this in phpIDE Debug Sessions

Script: /forums/memberlist.php
Server : localhost
Inb IP : 192.168.0.8
SAPI : apache2handler
session ID : 91671
Project :
Run Mode : HTTP mode (3rd party WEB server)

Notice there is no project name is this wrong?

However in Project Properties (Swapscene) I have:

Project : C:\Documents and Settings\nobody\Application Data\NuSphere\PhpED\projects\swapscene.ppj (note 'Nobody' is my user on 192.168.0.8 )
Root Directory : \\Logger\htdocs (Logger is 192.168.0.3)
Additional Directories :
Source Control : None

Account:
Top Publishing Directory :
Don't Publish Directories : CVS;svn

Run Mode : HTTP (3rd Party WEB server)
Root URL : h ttp://192.168.0.3 - had to put a space in when posting here as the forum didnt like me posting a local lan IP for some reason though I don't see how that could be a problem!
Remote root directory : c:\program files\apache group\apache2\htdocs

Default File to run :
Hide files :
Hide directories : CVS,svn

All that seems OK to me but the memberlist.php file does not open in phpED when the debug session starts. Is it supposed to? I'm not feeling confident in my abilities at the moment lol
View user's profileFind all posts by swapsceneSend private message
How do I set up dbg?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic