it is advertised that Visual Studio Code is able to compile and debug on a remote machine.
I've installed VSCode on Ubuntu and I want to compile and debug on the remote Raspberry.
I've setup GDB server on the remote Raspberry but on the Microsoft site it is not detailed how to configure the VSCode IDE in order to connect the remote Raspberry.
There is someone that can give a solution on VSCode (Not on standard Visual Studio)?
Thanks
Massimo
Due to the fact that nobody answered my question probably means that nobody use Visual Studio Code with Raspberry.
Then I've investigate myself and I can suggest to use Netbeans that allows the remote development and debugging as well.
It takes less thn 10 minutes to install and configure Netbeans because it include some automatic discovery and configuration automation.
Also this time Microsoft failed !
Massimo
Related
Is it possible to debug c++ on visual studio code without using visual studio code server and thus without installing extensions on the host?
I've tried using the local SSH FS extension on my client which doesn't need visual studio code server. However I am not able to step and inspect objects.
However I don't see a reason why it shouldn't work as other IDEs (e.g. netbeans) are able to use GDB as explained without installing anything on the host.
I cannot create a new Remote Tunnel on my remote machine.
It previously worked fine but after a reboot, it is now stuck at creating a new code server step.
code tunnel --log trace --cli-data-dir . --verbose
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[2023-01-08 16:58:40] debug No code server tunnel found, creating new one
The log in the working directory shows nothing. Please help!
Microsoft failed to mention a tiny detail about VSCode Tunnels which is bringing a myriad of weird problems to the users of this superb VSCode feature:
For VSCode Tunnels to run/connect properly on most Linux users, the Server VScode MUST run as root.
For VSCode Tunnels to run/connect properly on most Windows users, the Server VScode MUST Run As Administrator.
Works flawlessly after that.
Saved me a great ton of troubleshooting all my firewalls (local n remote), UDP port restrictions, OS Settings, "Hidden" VSCode Settings, etc... which I did quite extensively before stumbling upon this universal conclusion.
I'm remotely connecting via Microsoft remote-ssh plugin on Visual code studio 1.65.2 on Manjaro Linux (rolling build 64-bit). I'm having trouble with syntax highlight, it does not work. I work otherwise locally or via mapped drives, but not over remote ssh. Am I missing something, perhaps configuration? I would prefer not install to plugins on remote server.
I think plugin was needed to be installed on the server to make this work, however I was trying to avid that. Instead I used the FTP plugin to sync the files between local folder and remote.
I have terminal access to an AIX machine using ssh/telnet (No root access). I need to develop programs using C and compile it using the xlc compiler. Currently I can open remote files in eclipse(Juno) using RSE and edit files, but code-completion and error checking won't work. Can anyone please, help me to setup eclipse, so that code-completion would work and also, I would be able to compile the code from my Windows machine. Any help would be deeply appreciated.
You could try this, http://wiki.eclipse.org/PTP/rdt-setup or.. check out...
How to build a c++ project on a remote computer in Eclipse?
Somewhat similar. If you look at the 3rd answer.
Also you could try X11 Forwarding -
http://tartarus.org/~simon/putty-snapshots/htmldoc/Chapter3.html#using-x-forwarding
Instead of trying to setup Eclipse and CDT to do remote development, you may want to consider purchasing IBM Rational Developer for Power Systems Software (RDP), which is an Eclipse-based remote development environment that allows for C and C++ (and COBOL) application development on AIX from a Windows or Linux system. More information can be found here.
What is best way to do remote live gdb debugging and use Visual studio as the front end.
In my case: I have a C++ application (compiled for debugging) running on a Linux server
Can I use Visual studio on my windows machine as a front end to do
live debugging on the C++ application. Is this even possible for a
large scale application (OR)
If above is not possible, can I use eclipse on my windows or on a different linux box to do the same remote live debugging
Any other better IDE options ?
Thanks.
You can easily do it with VisualGDB:
Build your app on the Linux machine and ensure that you can run it.
Install VisualGDB on your Windows machine with Visual Studio.
Run the VisualGDB build server on the Linux machine.
In Visual Studio, create new project, select C++->VisualGDB
In the wizard select Linux Application -> Import Existing -> Import from Remote machine
Select the directory where you have built the Linux app. If it's not based on GNU Make, also specify the build command line.
Specify whether you want to synchronize IntelliSense directories with Visual Studio.
On the last wizard page specify the executable name of your project so that VisualGDB knows what to debug.
When you press "finish", the Wizard will create a Visual Studio wrapper project around your Linux project so that you can edit the files, built the project and debug it from Visual Studio.
There's a more detailed tutorial here: http://visualgdb.com/tutorials/linux/import/
You can try WinGDB.
It is an extension for Visual Studio allowing to develop and debug programs with GDB. Here is how to setup Remote Linux development using WinGDB.
I don't think it's possible using Visual Studio.
It should be possible using gdbserver/gdb combo, but on Windows machine you will need special build of gdb that targets linux. I never tried this, but it should be possible to build.
If you can get this working, then you can use Eclipse or any IDE that supports GNU tools.
Just some recommendation:
You can install a free X server on your Windows machine, such as Xming or Xorg in Cygwin. Then you can do Linux native debugging with eclipse. Just display the eclipse GUI to your X server on Windows. You can interactive with the GUI on your Windows machine.
Now possible with VS2015 + GDB extension, reas MS blog post here: http://blogs.msdn.com/b/vcblog/archive/2015/11/18/announcing-the-vs-gdb-debugger-extension.aspx