![]() ![]() Then restart apache and netbeans, and XDebug works again, SOMETIMES I then restart Netbeans - XDebug Waiting for Connection stays on. This may indicate that NetBeans is the issue, but I can't tell. and XDebug seems to have stoppend in Netbeans, even though this is the only indication.īUT, then I push Stop on Debug session, and: (I leave script above active in NetBeans - I Do not push STOP on debug session)īUT I get message in Netbeans: Xdebug Waiting for connection message Then I do a debug in Netbeans (this was traced with prints)Ĭli mode: In: &drupal_register_shutdown_functionĬli mode: Shutting Down in _drupal_shutdown_function Unable to bind - Error: Address already in use PHP Warning: socket_bind(): unable to bind address : Address already in use in /mampstack/test_xdebug.php on line 5 "/mampstack/php/bin/php" "/mampstack/test_xdebug.php" Port Scanning host: 127.0.0.1 Open TCP Port: 9000 cslistener I can debug using XDebug on simple Test_XDebug and complex scripts, It appears that the real problem occurs when the debugged task reaches a self-imposed termination from an exception, but this seems rather normal. Netbeans 7.4 does suffer same issue as far as my testing shows. There is no connection on port 9000 (no listener or sender) after failure.įollowing is testing on Netbeans 8.0. I downgraded to test, installing 2.2.3, and have the same behavior. PHP Version 5.4.26 from Bitnami Mampstack, Xdebug v2.2.4. #Waiting for connection netbeans xdebug macUnfortunately I have validate xdebug before run option checked and phpinfo() output contains:Īs I've said, I can't think of anything else.Confirm this on Mac - Mavericks, Netbeans 8. Please advice, as I have run out of ideas -) I know it's possible because some people on this forum have already done it. ![]() ![]() I would love to see it work either with PhpStorm or IDEA. I tried many configurations with PHP On Server option, but none of them work. Here's my simple setup:įile to trigger the debugger (this is the client running on the localhost:8888):Īpplications/MAMP/htdocs/project/folder1/folder2/folder3/folder4/folder5/pageContainingSWF.phpįile to debug (this is the php file that retrieves data from the db):Īpplications/MAMP/htdocs/services/remote.php What I'm trying to figure out is how should I set up my configuration. zend_extension=/Applications/MAMP/bin/php5.2/zend/lib/ZendExtensionManager.so Zend_extension_manager.optimizer=/Applications/MAMP/bin/php5.2/zend/lib/Optimizer-3.3.9 Zend_extension="/Applications/MAMP/bin/php5.2/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so" I have a Flex remoting setup with amfphp where it is not possible to trigger the debugger by launching an HTML page from PHPStorm, so I use an ide key of "PhpStorm1", that is also in my MAMP php.ini: The debugger does not jump to the breakpoint when I launch my URL that contains the swf that communicates to the remote services. Similar extensions exist for Firefox as well. But you may use another extension if you wish (I remember seeing more than one). Here is extension which I use myself - does the job perfectly: Xdebug helper - very easy to configure and use. If you want use "Wait for connection with ide key" option (which will allow you to debug complex applications much easier IMO, for example those that have SEO friendly URLs as well as specific scrip execution scenarios (where script parameters matters a lot) ) - then you have to initiate session from outside. Make sure that you have at least one breakpoint setup or "Break at the first line" option selected, otherwise debugger will not kick in (as there is no reason for debug) - this goes for both options - this and below. It will launch the page in browser and initiate debugging session automatically. If you want to start debugging from within PhpStorm (for that specific page) - just choose "Open web page in browser" option instead. This means that debugging session must be initiated manually from outside PhpStorm - from your browser. On screenshot #3 I see that you have "Wait for connection with ide key" option selected. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |