Is it possible to debug PHP projects on Glashfish with NetBeans 6.8 without installing Apache server?
After I press CTRL+F5 im getting 404 not found error.
As ASP.NET developer I have (I think) similiar developer server bundled with Visual Studio, so there is no need to install any other server like IIS. Am I right that Glassfish is similiar developer server, so why Im getting 404?
Thanks
Darek
From Netbeans page.
To successfully debug PHP applications in the NetBeans IDE for PHP, you need to have the PHP engine, the Apache local web server, and the XDebug debugger installed and configured for PHP development. If you have difficulties getting XDebug to work, see the NetBeans wiki on XDebug and/or ask the community at users#php.netbeans.org.
I hope it helps
Related
I'm new to VS Code and the php world. My experience is more with heavyweight IDE such as Visual Studio. However, I have a need to setup a php environment on my dev machine and am having some trouble getting it to work properly.
My environment is a Win 10 dev machine. I am using VS Code and php ver 5.5. I have properly installed the xdebug extension and verified it is properly installed. I have also installed the php-debug extension in VS Code.
The challenge I'm having and have been unable to find any useful information through google is launching the php website from within VS Code and then being able to debug it.
A few things I have tried, but haven't worked.
I installed the iis-express extension to VS Code which allows for running any folder through iis express. https://marketplace.visualstudio.com/items?itemName=warren-buckley.iis-express
This works, but the website doesn't display properly. IIS returns an error message saying the site is not properly configured. It's apparently missing a mapping or something along those lines.
I followed this blog. http://blog.denouter.net/2015/05/run-php-from-visual-studio-code.html and am able to run the website using the built in php web server.
Installed webmatrix and let the windows platform installer correctly install and wire up iis express to work with php. The same folder works fine when running from webmatrix.
Installed the php-debug extension to VS Code. https://github.com/felixfbecker/vscode-php-debug
Here is what I think I'm missing. I believe I need to launch the website from within VS Code for the debugging to work. I can't figure out how to "launch" the php website from within VS Code. The php-debug extension from VS Code only supports launch. It doesn't support "attach" mode. I suspect this is why when I run the website outside VS Code, the debugger doesn't work. Let me be clear, the debugger is working when I hit F5, it just doesn't ever stop on any breakpoints.
To summarize: How can I launch and debug my php website from within VS Code? I'm looking for a detailed step by step guide.
Thank you
I am the author of vscode-php-debug. You do not need to "launch the website" from inside VS Code. When you start the "Listen for XDebug" configuration from the debug section, VS Code (or rather, my debug adapter) will listen on port 9000 for XDebug. You need to run a web server like Apache, IIS or nginx locally on your PC and configure it to serve PHP files - this has nothing to do with VS Code. Then simply open a web browser and navigate to localhost and XDebug will connect to the debugger, stopping on breakpoints.
The two necessary settings in php.ini are:
xdebug.mode = debug
xdebug.start_with_request = yes
(Do not forget to add the subtitle [XDebug] before the settings.
I´m starting working with PHP on Eclipse and I´m having a bad time with XDebugger. This is my first time setting up this enrironment...
I´m running Eclipse 3.8.1 with PHP Development Tools SDK (I have also C++ installed on this Eclipse).
I´ve followed the instruction from the official xdebug site to install XDebug. It seens to be installed fine, as we can see from a phpinfo() call:
Well, once installed, I go to Eclipse, insert my breakpoints on the code, configure the debug configuration and when I call Debug As->PHP Web Application all I get is an empty window on Firefox with the following link:
http://localhost/myproject/index.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=14380396300041
Absolutely nothing happens neither to Eclipse or on Firefox.
Here is my configuation for debugging:
PS: I haven´t installed anything related to ZEND. Is it necessary ? Here is a error I get when using the Zend Debugger option:
Help appreciated!!! Hope this will be basic learning for solving...
To debug on zend debugger, you need zend debugger installed.
For xdebug remote debugging (browser run) you have to enable dbgp protocol:
https://wiki.eclipse.org/Debugging_using_XDebug#Configuration
I am new to php and running php on my system .
As IDE I am using
Eclipse for PHP Developers
Version: Helios
As server I am using : WAMPSERVER
Basically on eclipse I link my php project to one I have placed in www folder of wamp installation. I do all development in eclipse and then run the project on wampserver.
What I am not able to do is debug the code at all. I want to use breakpoints debugging as I could in Java programming using eclipse.
Please help, I have seen so many threads about xdebug and zend debug, but these have been of no help to me,
Any help is appreciated, let me know if I am doing everything wrong as in using both eclispse and wamp separately.
Thanks
We have a very large enterprise Web application developed using Mojave (MVC) framework in PHP.
Continuous development is still going on. There is an extensive use of AJAX throughout the system.
Debugging an issue is a nightmare currently.
I am wondering if this environment would help in debugging. Or are there any better tools?
Local Development environment:
WAMP
Windows 64
Eclipse PDT with XDebug (Recently installed)
MySQL.
Can we debug Ajax-heavy PHP web applications using XDebug?
Can I setup this project in Eclipse? (Import? Or just open the webroot of the application?)?
Are there any other better tools?
Xdebug doesn't support javascript itself, but you can use the browser extensions (that I've just pointed to in your other question) to start a debugging session when you want it (ie, an ajax-ui action): http://xdebug.org/docs/remote#browser-extensions
cheers,
Derick
I've already started developing in PHP, but I've had various issues with the environment: mysql server won't start, can't debug PHP code (even after defining PHP executables), installed apache2 and it didn't work, installed LAMP and still nothing, etc.
Overall, it's just been a mess, so I decided to start over(or any other fix that might pop up). That said, how can I set up a near-perfect PHP environment in Eclipse in which I can debug, run and just not have all this hassle?
I'm running Eclipse Indigo with PDT and PHP 5.3.
Well...you can start reading this:
How To Setup a Local PHP Development Environment in Linux Ubuntu 11.04 with Eclipse Indigo 3.7, LAMP & Xdebug
In addition I would suggest installing:
Eclipse Web Tools Platform (WTP) for your HTML/CSS development
Eclipse Data Tools Platform for your DB development. You can also use PhpMyAdmin.