CakePHP XDebug Netbeans - netbeans

I am trying to setup XDebug for my CakePHP application. Here is my system info:
Using WAMP (Windows 10, Apache 2.4.23, MySQL 5.7.14, PHP 5.6.25)
CakePHP v3.4
Netbeans v8.2
I then click the Debug Project option, under the Debug Menu. This will start a new browser window, with this URL: http://localhost/MyCakePHPApp/?XDEBUG_SESSION_START=netbeans-xdebug
Then the browser will just keep spinning. In the bottom of the browser, it says "Waiting for localhost..." It will continue to do this until I hit the NetBeans Continue button, twice. Then the app will load properly. It's almost like there is a break point somewhere, even though I cannot see it. in my breakpoint window, I can see that there are no breakpoints set. Also, if I add a breakpoint to my code, it also never gets hit.

Related

VSC: when starting debug (F5), get a spurious web page localhost:53519

Visual Studio Code (VSC) when hitting F5 to start the debugger, it spawn a page localhost:53519 which is does not make any sense to me. It does not affect the debugging function, it is just that it is there and I have to click to close it.
I cannot find that port number in "Open Configuration".
I did not expect this page to be launched when F5 is executed.
Update: Debugging php with xdebug installed. Live server was previously installed but later removed, and the problem is still there.

PyDev Jython Interactive Console on Eclipse fails to be created

Why might my Jython Interactive Console fail to be created when called in Eclipse?
Following the 'Using Jython in an IDE' instructions in the Jython manual (http://www.jython.org/jythonbook/en/1.0/JythonIDE.html) I have reached just before 'Listing 11-10' in the Testing section, specifically:
First, click the right-most button on the console’s toolbar (you will
recognize it as the one with a plus sign on its upper left-hand
corner, which has the Open Console tip when you pass the mouse over
it). From the menu, select PyDev Console. To the next dialog, answer
Jython Console. After doing this you will get an interactive
interpreter embedded on the IDE
I select 'Open Console' -> 'PyDev Console' -> 'Jython Console' -> 'OK'. The 'Create Interactive Console' dialog appears and then either:
Gets about 1/10th complete and stops (I left it overnight and it hadn't progressed in the morning)
Finishes and fails with the error message:
Error initializing console.
Unexpected error connecting to console.
Failed to recive suitable Hello response from pydevconsole.
Last msg received: HTTP server returned unexpected status: null
My setup:
Operating System: Windows XP
Eclipse: Kepler Service Release 1
Jython: 2.5.2
PyDev: 3.0.0.201311051910
This error occured due to badly configured proxy settings, specifically the proxy exceptions did not include 'localhost' and '127.0.0.1'. This resulted in requests from Eclipse to itself through localhost being diverted through the proxy, which neither the proxy nor Eclipse were happy with.
The solution (in Windows XP) was to open Internet Options -> Connections (tab) -> LAN Settings -> Advanced, and then add localhost;127.0.0.1; to the beginning of the Exceptions list.
I think this was an issue on PyDev. Can you please check the latest nightly build (see http://pydev.org/download.html for details on how to get it) and see if it works for you?

Eclipse with Xdebug crashes while debugging when flow jumps from file to file

I'm runnung Eclipse (indigo) 3.7.1 with Xdebug 2.1.3 on Ubuntu 10.04 LTS, PHP 5.3.2-1ubuntu4.14.
My problem: While debugging Drupal installation everything works fine, adding breakpoints, stepping in, over, return, vars are showing as they suppose to. But, once the execution flow takes me to the other file which holds the definition of a function being called in the first file, I get an error message saying: "Unexpected termination of script. Debugging ended.".
Show super global vars is switched off in Xdebugger options (solution I found previously), and 'Path Mapper' is left blank in PHP server options (another solution).

How to have change debugger setting in Eclipse for a launch file

His,
I have been trying to find out why starting DevMode with Debugger from Eclipse was so slow and noticed in the list of processes on my machine the following line:
/usr/lib/jvm/jdk1.6.0_14/bin/java -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:47248 ...
Apparently the application is suspended to wait until the debugger is connected which takes about 2 minutes. I would like to set "suspend=n". Does anyone know where I could set this directive. The vm section in Eclipse launch configuration is empty and if I paste the updated debugger config there is a error telling that the values are entered twice.
As I understand it, Eclipse takes this config from somewhere and inserts it automatically when I run launch configurations in debugger mode.
Thanks
You can't remove that parameter and, if you could, it wouldn't make a difference. When you connect a new browser to the GWT OOPHM instance it has to compile the entire project for use in development mode. This is what takes time, not waiting for the debugger to attach.

Mac eclipse xdebug firefox issue

I have worked with eclipse, firefox, and xdebug for months now on a linux-ubuntu machine. recently i moved to a mac 10.6 and set up all these programs and they all work fine until I try to run xdebug using firefox as the default browser in eclipse.
It will work, but the browser must be close other wise it will prompt a message saying
Close Firefox:
A copy of Firefox is already open. Only one copy of Firefox can be open at a time.
and when this happens I can not debug, I have to close the browser and start the debugger again. This becomes very annoying after a few tries.
If I use safari I do not have this issue, it just opens a new tab and I can debug with no problems. I can live with this set up, but I prefer to use FF. any idea why this is happening?
make sure firefox is set as your default browser on your mac and then in eclipse go to preferences->general->web browser and select use external browser and in the window below select default system browser.
This should launch stuff as a new tab in firefox.