T
Tank2005
Guest
My environment is Visual Studio 2019(16.2.3) on Windows 10 64bit.
I heard that a latest Visual Studio supports "Separate build and debug targets for Linux projects".
So I thought it might be possible to remote debugging an executable file built on WSL for Raspberry Pi.
I created a Linux Console App project for Visual Studio and set the C++ project properties as follows:
Building this project was successful and an .out file was created on Windows.
However, when I run the debug, this .out file is not copied to the Raspberry Pi, so debugging fails.
Full project is here(OneDrive). Please tell me how to remotely build this executable if it's possible.
*You need to install those packages and more to WSL.
sudo apt install build-essential
sudo apt install g++-arm-linux-gnueabihf
Continue reading...
I heard that a latest Visual Studio supports "Separate build and debug targets for Linux projects".
So I thought it might be possible to remote debugging an executable file built on WSL for Raspberry Pi.
I created a Linux Console App project for Visual Studio and set the C++ project properties as follows:
- General -> Remote buildmachine <= "localhost(WSL's local IP)"
- Debug -> Remote Debug Computer <= "192.168.0.2(Raspberry Pi's local IP)
- C/C++ -> C Compiler <= arm-linux-gnueabihf-gcc(*)
- C/C++ -> C++ Compiler <= arm-linux-gnueabihf-g++
- Linker -> Linker <= arm-linux-gnueabihf-g++
Building this project was successful and an .out file was created on Windows.
However, when I run the debug, this .out file is not copied to the Raspberry Pi, so debugging fails.
Full project is here(OneDrive). Please tell me how to remotely build this executable if it's possible.
*You need to install those packages and more to WSL.
sudo apt install build-essential
sudo apt install g++-arm-linux-gnueabihf
Continue reading...