Situation: on the local machine is VSCode , from under it the project is corrected on the remote machine via ftp.
Question: how to set up a project to compile on a remote machine and debug on a local using Visual Studio Code ?
In essence, all that is required is to run make on the remote machine and pick up the debugger on it. You can run make for example using a task.json script, something in the spirit of:
{ "version": "0.1.0", "command": "make", "isShellCommand": true, "tasks": [ { "taskName": "Makefile", // Make this the default build command. "isBuildCommand": true, // Show the output window only if unrecognized errors occur. "showOutput": "always", // No args "args": ["all"], // Use the standard less compilation problem matcher. "problemMatcher": { "owner": "cpp", "fileLocation": ["relative", "${workspaceRoot}"], "pattern": { "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", "file": 1, "line": 2, "column": 3, "severity": 4, "message": 5 } } } ] } But how to run it on a remote machine, as well as remote debugging - these questions are not very clear.
google://expect ssh powershell remote debug (visual studio/gdb)- strangeqargo