Problem with getting Remote Debugging in VS Code to uzerp in VirtualBox VM #248
Replies: 3 comments 2 replies
-
@chrisringrow this SO post should help you get going https://stackoverflow.com/questions/57964886/vscode-remote-debugging-with-xdebug-when-using-ssh-connection-to-edit-code You do need PHP Xdebug installed in your VM. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Tried that and it made no difference as far as I could tell. |
Beta Was this translation helpful? Give feedback.
1 reply
-
My xdebug settings in php.ini are: xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.remote_connect_back =1 ; Added later to try to get debug working
;; Added from Steve blamey
xdebug.remote_handler = dbgp
xdebug.remote_log = "/tmp/xdebug/log"
xdebug.profiler.enable =1
xdebug.remote_port=9003
xdebug.remote_autostart = 1
xdebug.remote_host = 127.0.0.1 My vscode launch.json is: {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9003
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 0,
"runtimeArgs": [
"-dxdebug.start_with_request=yes"
],
"env": {
"XDEBUG_MODE": "debug,develop",
"XDEBUG_CONFIG": "client_port=${port}"
}
},
{
"name": "Launch Built-in web server",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-dxdebug.mode=debug",
"-dxdebug.start_with_request=yes",
"-S",
"localhost:0"
],
"program": "",
"cwd": "${workspaceRoot}",
"port": 9003,
"serverReadyAction": {
"pattern": "Development Server \\(http:https://localhost:([0-9]+)\\) started",
"uriFormat": "http:https://localhost:%s",
"action": "openExternally"
}
}
]
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have uzerp running on Ubuntu 18.04.5 server in a Virtualbox VM.
I can run uzerp simply by entering the url of the VM from the browser on my Windows 10 laptop
I can also connect to it via Visual Studio code via SSH and modify the files.
However I cannot get remote debugging within Visual Studio working.
I would appreciate some help and I suspect a Zoom session will be necessary.
Chris Ringrow
Beta Was this translation helpful? Give feedback.
All reactions