Giter VIP home page Giter VIP logo

rpi-dotnet's Introduction

Sample project for remote Raspberry Pi debugging

Overview

  • Currently remote development is not supported on Raspberry Pi. Hence, the development must be done on local machine, files should be copied on remote desktop and then we can debug remotely
  • The project includes sample setup to ease the environment setup

Getting started

Desktop (Work machine)

  • Install the .NET SDK on your Desktop
  • Install VSCode
  • Install C# Extension in VSCode
  • Install WinSCP (used for synchronizing files to remote)

Remote (Raspberry Pi)

Note: The given link is for .NET5 SDK , if you are using different version make sure to install the right SDK

wget -O - https://raw.githubusercontent.com/pjgpetecodes/dotnet5pi/master/install.sh | sudo bash
curl -sSL https://aka.ms/getvsdbgsh | /bin/sh /dev/stdin -v latest -l ~/vsdbg

Project Setup on local

If creating a new project

  • Create a folder such as "hello-world"
md hello-world
  • Create a new dot net console application
dotnet new console

Setup for debugging

  • Setup for debugging:
    • Copy .vscode folder from this sample project
    • Copy winscp.txt file from this sample project
    • Edit .vscode/settings.json file to modify the settings for your project such as remote url, username and password

Project Setup on remote

  • Choose/ create a work directory for your project. For example, if your project is called RPi
mkdir -p ~/work/RPi
  • Now you should have a folder such as /home/pi/work/RPi

Start debugging

In VSCode, you should be able to go to debug and choose .NET Core Launch (Remote)

rpi-dotnet's People

Contributors

durlabhjain avatar shivamparasharspraxa avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.