strange double post of index page |
Guru master
|
Interesting I've had similar issues with various projects (mainly Magento) where breakpoints seemed to get called more often than I thought they should. I had actually assumed it was due to something like Ajax and/or file (image/CSS) loading, which can cause Magento code to re-run. Annoying and I never had time to track down the cause, so I just keep pressing F9.
I'll give your code a go, because I'm intrigued to see if this really is an issue with the debugger, rather than the project. Do you have an .htaccess that could affect things, such as handling any rewrites? |
||||||||||||
|
|
Nope, straight up and simple.
Strangely, the double posting (for lack of a better descriptor) has stopped! It must be something localized. I am also having issues with the debugger basically causing the web app to lock up when debugging from the server and also running JS debugging from FireFox. There may be some interaction there that is inconsistent and causing this strange behavior. If I find anything I will post the results. |
||||||||||||
|
Resolved |
|
I believe that I found the cause of the problem. I am using FireFox with the FireBug plugins for JS debugging. If I have FireBug turned off and start a fresh browser, it does not double post the HTML page. If FireBug is enabled, then I get the double post.
I can live with that. |
||||||||||||
|
Guru master
|
Thank you for that bit of research. I also use FireBug; it's my favourite CSS inspector. Whilst I'm not always doing JS debugging, I think I do still have that enabled. I'm going to have a play with the FireBug settings the next time I seem to be getting breakpoints being hit too often.
I'd rather live with the double posts than do without FireBug, but if I can temporarily stop the problem then even better. |
||||||||||||
|
|
Hi
I am also getting multiple postings I have disable Firebug on Firefox and also tried IE but can get up to 7 Session starts ann ends Sometimes the numbe rof them does not seem to match but it is causing hours of wasted time trying to debug Here is an example of a log IDE Starting debug session (407475299972100009), script: /mcb-1-5-0-5/index.php, server: localhost, sapi: apache2handler 12:43:12 IDE Starting debug session (407475299972100009), script: /mcb-1-5-0-5/index.php, server: localhost, sapi: apache2handler 12:43:22 IDE Starting debug session (407475299972100009), script: /mcb-1-5-0-5/index.php, server: localhost, sapi: apache2handler 12:43:22 IDE Starting debug session (407475299972100009), script: /mcb-1-5-0-5/index.php, server: localhost, sapi: apache2handler 12:43:22 IDE Starting debug session (407475299972100009), script: /mcb-1-5-0-5/index.php, server: localhost, sapi: apache2handler 12:43:22 IDE Starting debug session (407475299972100009), script: /mcb-1-5-0-5/index.php, server: localhost, sapi: apache2handler 12:43:23 IDE Starting debug session (407475299972100009), script: /mcb-1-5-0-5/index.php, server: localhost, sapi: apache2handler 12:43:23 IDE Session (407475299972100009, /mcb-1-5-0-5/index.php) is finished, switching to another (407475299972100009), script: /mcb-1-5-0-5/index.php 12:43:41 IDE Session (407475299972100009, /mcb-1-5-0-5/index.php) is finished, switching to another (407475299972100009), script: /mcb-1-5-0-5/index.php 12:43:50 IDE Session (407475299972100009, /mcb-1-5-0-5/index.php) is finished, switching to another (407475299972100009), script: /mcb-1-5-0-5/index.php 12:43:54 IDE Session (407475299972100009, /mcb-1-5-0-5/index.php) is finished, switching to another (407475299972100009), script: /mcb-1-5-0-5/index.php 12:43:57 IDE Session (407475299972100009, /mcb-1-5-0-5/index.php) is finished, switching to another (407475299972100009), script: /mcb-1-5-0-5/index.php 12:44:01 (Note also 7 starts but only 5 ends?) Any ideas would be appreciated? I don't htink this used to happen so I presume it is a configuration / conflict issue causing it it? |
||||||||||||
|
Guru master
|
I've had this problem at least since 5.9 and I think on previous versions as well. Occasionally I did check the globals to see if there was a referring page or request, to try and get some idea about what was going on, but I don't remember seeing anything helpful.
Unfortunately I've mostly seen this with Magento and it uses rewrites plus has a complicated controller mechanism (Zend framework), so wasn't particularly convenient for me to play with. I'd like to play with a simple project that demonstrates the issue. I'm currently prepared to believe it is not a debugger issue, but if others have it then it does need looking at. I'm hoping to have time later this coming week to have a play. Over the next few days it would be interesting to see if any other people post if think they are seeing similar issues. |
||||||||||||
|
Site Admin
|
Hey Lads, neither debugger nor IDE can run your code for you. If you click Run just one time, the IDE will ask the browser to run your code just one time. All the other requests are done by your code and/or by the browser.
For example, if you run phpinfo(), you'll get 3 requests - one for phpinfo info, and 2 others for two images. |
||||||||||||
_________________ The PHP IDE team |
|
Demetri - yes i would agree with what you say as I have now realised that it was some AJAX code causing multiple requests that I just hadn't seen before
Cheers |
||||||||||||
|
Site Admin
|
koathb, you're welcome.
|
||||||||||||
_________________ The PHP IDE team |
strange double post of index page |
|
||
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