 |
 | problem with AJAX |  |
Joined: 01 Jul 2011 |
Posts: 7 |
|
|
 |
Posted: Fri Jul 01, 2011 6:32 am |
|
 |
 |
 |
 |
Hello,
I've just moved from ZEND IDE to phpEd, and phpED is far much better that ZEND IDE!!
I've just found a small bug, which has a workaround.
If you select "debug next page" and "debug session", from IE9, you expect the next page to be launched from the IDE in debug mode.
For instance, if I have a link in a web page to another web page, then If I click the link, it should launch the IDE with the targeted page.
I confirm it works.
Now If I have a button that call a PHP page with AJAX; I would expect the same.
It does not work. The page is called without the IDE/debugger.
I've found a workaround.
You press refresh, then you press the button.
The "refresh" will just refresh the current web page (BTW without the debug mode wich is strange as I have selected "debug next page", probably the current page is not seen as a "next page" ).
When you press the button, it launches the targeted php page in the IDE.
Did you notice the same?
thanks
rod
|
|
 |
 | |  |
Site Admin
Joined: 13 Jul 2003 |
Posts: 8361 |
|
|
 |
Posted: Sat Jul 02, 2011 5:49 pm |
|
 |
 |
 |
 |
I think it does not matter you work with IE 9 or IE 6. The problem is that the browser events aren't fired upon refresh or ajax (HTTPXml) requests. Without these events, toolbar does not see that you're loading the page/or xml, so it does add debugger cookie and the session won't trigger as a result.
I'll check what can be done in the next version. Meanwhile, please contact support ( http://www.nusphere.com/contact_us ) and provide simple samples demonstrating the problem.
|
_________________ The PHP IDE team
|
 |
 | |  |
 |
 | |  |
Joined: 01 Jul 2011 |
Posts: 7 |
|
|
 |
Posted: Fri Jul 15, 2011 4:41 am |
|
 |
 |
 |
 |
dmitri wrote: | Rod, It's not necessary to turn PC off to get cookies cleaned. Just close browser process and all cookes won't survive.
Closing a window may not help because temporary cookies belong to process, not to window. |
I didn't say that I turned the PC off to clean the cookies.
I said that I cleaned off the cookies (using from IE "internet options" ->"browsing history" -> delete...) and it didn't solve the issue.
So the issue is not link to the cookies.
Then I said that the only way to fix the issue is to restart the PC.
Thx
Rod
|
|
 |
 | |  |
 |
 | |  |
Joined: 01 Jul 2011 |
Posts: 7 |
|
|
 |
Posted: Mon Jul 25, 2011 7:30 am |
|
 |
 |
 |
 |
plugnplay wrote: | Occasionally I do have problems getting the debugger to kick in, so I temporarily add a DebugBreak() to work around the problem. Some people don't like using DebugBreak() in their code as it will cause the PHP code to load on a system without DBG installed, but use with care and it certainly works well.
I think NuSphere DBG uses session cookies and they probably would not be cleared by deleting browser history. Exiting all instances of the browser should clear session cookies and that certainly works for me with all the browsers that I use. For example, having two separate Internet Explorer windows means session cookies may stay active if either one of those remains open. |
in my stuation, I closed all the IE instances, and still have the problem.
I will test what you said.
Hope they can fix this bug.
Thanks
Rod
|
|
 |
 | |  |
Joined: 27 Jul 2011 |
Posts: 6 |
Location: Northern VA |
|
 |
Posted: Wed Nov 16, 2011 5:13 am |
|
 |
 |
 |
 |
I made StopDBG.php
<?
header('Set-Cookie: DBGSESSID=false; path=/; expires=saturday, 25-Sep-99 12:12:30 gmt;'); //not sure you need expires date
setcookie("DBGSESSID",false,0,'/');
unset($_COOKIE['DBGSESSID']);
?> |
This worked for me, I had the same issue. DebugBreak() didn't help with this issue.
|
|
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
|
|
|
|  |