Multiple debugging sessions? |
|
More details about my environment:
I run Win XP, PhpEd 5.0 and here's what I added to php.ini following recommendations of dbg-wizard.php: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; PhpEd 5.5.x remote debugging feature. zend_extension_ts=W:\www\php5\ext\php_dbg.dll-5.2.x [debugger] debugger.hosts_allow= 127.0.0.1 localhost debugger.hosts_deny=ALL debugger.ports=7869, 10000/16 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Everything is correctly loaded. I set project settings according to suggestions and everything worked fine. I run index.html with the following form in it: <form action="http://localhost/_test/webservice/client.php?DBGSESSID=123;d=1,p=0,c=1" method="post" .........etc When I click [submit] button to 'post' this form - I got 'client.php' correctly intercepted in the PhpEd debugger and i am able to debug it step by step. My client.php has the following: $request = 'http://localhost/_test/webservice/server.php?DBGSESSID=567;d=1,p=0,c=1'; ... $session = curl_init ($request); ... $response = curl_exec ($session); curl_close ($session); I have 'server.php' loaded and breakpoints set at the beginning. When i execute 'curl_exec' line - debugger essentially 'hangs'. To un-hang it I'd have to (x)-stop execution of debugger (kill session) and ONLY AFTER THAT it spawns next session (number 567) - and i am able to debug server.php The problem is that client.php session is lost. I do have [x] Debug Sessions enabled in debug settings - and I thought it gives a possibility to have few sessions running simultaneously? Could anyone please confirm/deny that? Thanks, (PS: I tried another tool - PhpEdit which does support multiple sessions - but I'd really love to make phpEd to work if possible) Gleb |
||||||||||||
|
Site Admin
|
nested debug sessions aren't supported by PhpED v5.0
To debug far end, you have to run current script without debugger and somehow cause the remote script to trigger debug session. You may use all ways provided, including GET, POST, COOKIE, DebugBreak() and so forth. |
||||||||||||
_________________ The PHP IDE team |
|
Ok, thank you for your reply.
I ended up debugging one script at a time by adding/removing query strings from called script name as I progress (?DBGSESSID=...) I compared pretty much all PHP development IDEs and have to admin PhpEd has a nicest interface and consistent behavior. For some reason other IDE's would change their behavior for no apparent reason and i end up wasting lots of time trying to fix things that breaks for no apparent reasons. PhpEdit (from ) can run multiple debugging sessions but it won't let you change variables/strings during debugging which is really big miss for me. Having uninterrupted debugging feature would be welcome addition though. Gleb |
||||||||||||
|
Multiple debugging sessions? |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by