I appreciate the question that Mark asked below, and I have a somewhat related question:
Is it possible to run Wamp Server and NetBeans on a Win 10 PC and have NetBeans debugging a PHP 7.4 app on a remote server? Currently I am running all of this on a win 10 pc local host using Wamp Server and NetBeans. TIA, Mel Stanley From: Mark Rogers <m...@more-solutions.co.uk> Sent: Thursday, March 2, 2023 9:23 AM To: users@netbeans.apache.org Subject: [PHP] Debugging remote PHP website I'm new to Netbeans, but have succeeded in getting it up and running talking to a webserver on localhost (PHP 8.2, IIS, XDebug 3.2, NB17). I'm now trying to achieve the same feat on a remote server (Ubuntu 22.04, Apache, PHP 8.1). As I'm accessing it remotely I have configured a connection over SFTP to the main site code, however the site also uses code in shared libraries outside that folder, and I cannot see how to add them to my project, either for editing or for debugging. Specifically, on my remote server I have something like: /var/www/libs/a /var/www/otherlibs/b /var/www/sites/mysite/lib /var/www/sites/mysite/htdocs I have NB configured with /var/www/sites/mysite as the project source folder (web root = htdocs). But I can't see how to add /var/www/libs/a, etc, to the include path. Also maybe relevant: the site has PHP auto_prepend_file pointing to/var/www/libs/a/start.inc.php If I try to debug a file inside mysite/htdocs, it seems to step into it OK and the run/step buttons work, but they don't show any code, either as it steps through the start.inc.php code, or even when it reaches the code in htdocs (eg if I put a breakpoint in). So how (a) do I tell Netbeans how to access those remote folders, and (b) step through them, if sorting out (a) doesn't solve that anyway. Aside: As it happens I reach this server is over a VPN and am able to map /var/www to a network drive. But that didn't work either - I'm guessing because the mapped drive paths look very different from what the server sees? -- Mark Rogers