If I click on a PHP file I want to debug and click on debug I get a permission denied error
I don’t get this on windows, if I click on a file, lets say modrequest.class.php and then invoke debug from the pulldown menu, a firefox tab opens with the url
’
http://localhost/revdev/core/model/modx/modrequest.class.php?XDEBUG_SESSION_START=netbeans-xdebug’
Are you sure the user you are using with netbeans is the same one that owns the php files you are trying to debug? On linux my revo install is owned by my linux user although they are in the webroot, only things that apache needs to write to do I make writable for it. If the users don’t match you might get a perms error. The actual URL of course clearly nonsense as far as revo is concerned.
What I do is pick a convenient debug point and insert a breakpoint in it, say line 51 of modrequesthandler(you can pick anywhere here BTW) For instance you can pick an external snippet in assets say and place a breakpointin that if thats what you are working on, it will break when the code is executed.
The XDEBUG_SESSION_START=netbeans-xdebug is only appended for the first invocation, if you navigate away to another page ensure your Xdebug plugin helper is activated in your browser, this will always silently append the XDEBUG_SESSION_START line to the URL otherwise you’ll have to do it manually.
This is kind of hard to explain without pictures. I might do a desktop record session over the weekend to show how I approach this with Netbeans.