Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
{{AppliesToMito8M}}
{{AppliesToSBCX}}
{{AppliesToSBC Axel TN}}
{{AppliesToVisualStudioCode}}
{{AppliesTo VisualStudioCode TN}}
{{InfoBoxBottom}}
{{WarningMessage|text=This Technical Note was validated against specific versions of hardware and software. What is described here may not work with other versions.}}
==Testbed==
===Host===
Regarding the development host, an Ubuntu TBD 18.04 distribution was used.
After installing [https://code.visualstudio.com/insiders/ Visual Studio Code '''Insiders''']
*The [https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack Remote Development extension] was removed
*The [https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh-nightly Remote - SSH (Nightly) extension was installed]
 ===Target===
For convenience, an Armbian Buster distribution was used on the target. As such, the software configuration is like the one described in [[MISC-TN-008:_Running_Debian_Buster_(armbian)_on_Mito8M|this article]].
In order to enable the connection with VSC, it is mandatory to set up the SSH server to allow passwordless login for the user(s) utilized for the remote development sessions. In this example, the user <code>armbian</armbiancode> will be used. For more details on this, please see for instance [https://linuxize.com/post/how-to-setup-passwordless-ssh-login/ this page].
==Testing==
[[File:VSC-ssh1.png|thumb|center|600px|Connection process]]
 
[[File:VSC-ssh2.png|thumb|center|600px|Target's terminal]]
 
When connecting to the target for the first time, VSC will download to the target the ''VS Code Server'', which is required for the remote development sessions.
 
Of course, one can navigate the target's directories directlyas well:
 The following screenshot shows a remote debugging session of a simple Python programthat is stored on the target's file system:
[[File:VSC-ssh4.png|thumb|center|600px|Remote debugging session of a simple Python program]]
 
==Useful links==
*[https://www.hanselman.com/blog/VisualStudioCodeRemoteDevelopmentOverSSHToARaspberryPiIsButter.aspxVisual Studio Code Remote Development over SSH to a Raspberry Pi is butter]
8,215
edits