NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Starting debugger remote in browser(IE) with DBGSESSID


Joined: 23 Dec 2003
Posts: 5
Reply with quote
Hi, to begin debug in browser(IE) i use the "?DBGSESSID=1@192.168.0.223:7869" but the debugger only starts if the "PHP DBG Listener" on client machine have the option "break point on script start" marked. How can i do to my debug starts without the "break point on script start" checked on machine client? I guess, if i passed the client ip(192.168.0.223) on the URL i think that this option not need to be marked

My server is Linux with php version 4.2.3
The DBG version is 2.11.23

My php.ini is:
[Debugger]
debugger.enabled = true
debugger.profiler_enabled = true
debugger.hosts_allow = 192.168.0.223
debugger.hosts_deny = ALL
debugger.JIT_enabled = true
debugger.JIT_host = clienthost
debugger.JIT_port = 7869


In phpinfo() i got the follow:
debugger.enable_session_cookie On On
debugger.enabled On On
debugger.fail_silently On On
debugger.ignore_nops Off Off
debugger.JIT_enabled On On
debugger.JIT_host clienthost clienthost
debugger.JIT_level 3 3
debugger.JIT_port 7869 7869
debugger.profiler_enabled On On
debugger.session_nocache On On
debugger.timeout_seconds 300 300

tks
View user's profileFind all posts by cleberadrianiSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
What IDE do you use ?

You may remove the lines below from php.ini as they are not supported in free version:
Code:
debugger.hosts_allow = 192.168.0.223
debugger.hosts_deny = ALL
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 23 Dec 2003
Posts: 5
Reply with quote
PhpEdit v0.8.0.25.
tks
View user's profileFind all posts by cleberadrianiSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
I didn't try phpedit 0.8.x.
All I can say is that if you do not have "break on first line" checked in the listener you won't get debug session started. Listener should stop on the first line _anyway_ and launch the IDE. Then it's up to IDE if it want to continue execution or wait for user input.

In PHPED you can simple accomplish it by checking or unchecking "Stop under first line after run".

Without the initial stop, there is no way to set breakpoints... so, you see, debugging won't be possible...
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 23 Dec 2003
Posts: 5
Reply with quote
hi, ddmitrie, tks for your suporte. For me your debug is the best debug available for PHP, congratulations. I use PHP for 3 years and in that time i´ve tested many differents IDEs until i find PHPEdit 0.8x, now is my ony choice to use with PHP, if you have oportunity to test it, i´m sure you will like it Very Happy .

If i leave "break on first line" checked in the listener EVERY script PHP that i run in my browse(in client machine) will be Debugged automatically, even so if i NOT append the "?DBGSESSID=1@192.168.0.223:7869" to the URL.

How can i do to debug only php with "?DBGSESSID...." ? in the URL?
View user's profileFind all posts by cleberadrianiSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
if you don't like to run a session you'd add
DBGSESSID=-1
Otherwise an old DBGSESSID variable is passed with cookies and activates debugging.
Alternatively you may stop dbg from using cookies.
See dbg settings.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 23 Dec 2003
Posts: 5
Reply with quote
Now it´s works!! Smile

After many attempt, finally it´s working!. I do the follow:

1) Remove *any* aplications that use DBG technology.
2) Remove *any* orphan registry entries with "System Mechanic 4".
3) Reinstall and configure PhpEdit IDE 0.8.0.25 for remote debug.

Even after the steps above, sometimes, debug not start automatically(in browse), but i thing that´s a problem of IDE ´cause i´ve installed another IDE(Maguma www .maguma. com) for PHP (in other client´s machine) and everythings works great Laughing

I will post a message in PHPEdit forum about this.

Where i can find more information about DBG and your parameters?
View user's profileFind all posts by cleberadrianiSend private message
Starting debugger remote in browser(IE) with DBGSESSID
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