-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging with Remote SSH #360
Comments
Okay, so I got this to work by configuring xdebug with |
Yes, the dbgp code runs on the remote server, while http requests come from your browser... Would be a nice use-case for dbgp proxy... |
I cannot get this to work either. Oddly enough, if I use an undefined constant then the debugger works and pauses on the exception. However, adding a breakpoint has no effect whatsoever. The code will not halt on the breakpoint. Any ideas? |
That would point to invalid path mapping. Check if you have anything under |
I have the following folder open in my workspace "~/public_html/mlinks" and that is the document root for the web application. My pathMapping thus contains "~/public_html/mlinks/": "${workspaceFolder}". I did try expanding out the tilde to the actual path but that didn't change. I feel that my understanding of pathMappings might be inaccurate. |
If you are using VSCode Remote SSH that means that the debugger client is running on the same box as the web server. You should not need the pathMapping, try to remove it. |
Hi, I have tried this configuration & it works. Problem is now it doesn't work with local configuration. Do we have some setting / configuration which will work in all scnerio? I tried several scenario where used SSH-FS but it needs files in local PC to debug. Help will be highly appreciated. zend_extension=/usr/lib/php/20190902/xdebug.so Following Works for Debugging when I have files in Local Folder & Uploading them via SCP: zend_extension=/usr/lib/php/20190902/xdebug.so |
Hi. Mixing these two scenarios is problematic. In theory there are two ways to do this:
|
My question is if we enable to provide SCP path to pathMappings settings in your launch.json it can solve this scenario. ==> Here if we could point SCP Mounted file system path |
I "solved" it adding this to the apache configuration:
Then in the xdebug.ini I set the following: Then when I add to the url ?localdebug=true it will use localhost. Edit: Thanks for the tip for using port forwarding. When debug session is started I just forward Port 9000 in the Remote Explorer plugin and everything is working. |
Support for dbgp proxy was implemented. Open new is this is still an issue you are facing. |
I've been successfully using PHP Debug with a remote host in a normal project. However I've just setup the new Remote - SSH extension and am trying to get PHP Debug to work with that. Is this possible? What do I need to do?
The text was updated successfully, but these errors were encountered: