1. debug the PHP application on the local Server (usually Apache HTTP Server), and debug the PHP program using the browser and XDebug (unrelated to the currently set PHP interpreter)
2. debug the PHP script (you need to set the tool-> Option-> PHP interpreter)
3. debug the remote server (via FTP)
(1) It should be noted that the first method uses XDebug debugging, so httpd will be used no matter how many PHP versions are installed on your machine. the PHP version specified by PHPIniDir in conf requires that we download Xdebug corresponding to the php version. dll, and in php. configured in ini. Compared with ZendStudio8.0.1, you must manually select XDebug and manually set the PHP interpreter (Window-> Preferences-> PHP Executables.
In addition, ZendStudio8.0.1 also has a Bug: the memory of the slave cannot be read. Even more depressing is that once this error is reported, this error will be reported again no matter what project to debug as long as a breakpoint is called, after ZendStudio and Apache are reinstalled, they are useless (truly crashing). In the end, we accidentally find that if this error is reported, select Window-> Reset Perspective, however, this error will still be reported in the next monitoring variable. (Angry)
(2) Using script debugging in Netbeans: Right-click a project and choose Properties> RUN configuration> run mode> script (in the command line ), set a start page, depending on the PHP interpreter set in the current Netbeans. Note: Although php.exe‑php-cig.exe‑php-win.exe is used for debugging, the PHP interpreter we selected is loaded by default. ini, so you still need. configure XDebug in ini. Otherwise, not only the breakpoint is invalid, but Netbeans is constantly trying to connect to Xdebug (although XDebug debugging is not used ).
(3) Whether Netbeans or ZendStudio uses XDebug debugging, the configuration in php. ini is the same.
(4) Zend Studio is very bloated and difficult to use. The built-in Zend Debug, automatic line feed, and code formatting are extremely difficult to use. I Like Netbeans.
Two ways to use the English version of Netbeans: 1. Start the command line: netbeans.exe -- locale en: us or netbeans.exe -- locale en
2. Modify the installation directory configuration file etc/netbeans. conf and add "-J-Duser.language = en-J-Duser.country = US" in the value of netbeans_default_options ":
Netbeans_default_options = "-J-Duser.language = en-J-Duser.country = US-J-client-J-Xss2m-J-Xms32m-J-XX: PermSize = 32 m-J-Dapple.laf.useScreenMenuBar = true-J-Dapple.awt.graphics.UseQuartz = true-J-Dsun.java2d.noddraw = true"