GithubHelp home page GithubHelp logo

brinkqiang2cpp / vscode-ssh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from loginsot/vscode-ssh

0.0 1.0 0.0 201.92 MB

vscode ssh development and debugging environment setup.

License: MIT License

Shell 49.58% Batchfile 50.42%

vscode-ssh's Introduction

vscode-ssh

Copyright (c) 2013-2018 brinkqiang ([email protected])


vscode ssh 远程调试开发环境搭建


1. 安装VSCode-insider版本

安装setup目录VSCodeUserSetup-x64-1.42.0-insider.exe

2. 在linux端 解压.vscode-server-insiders.zip到账号根目录

unzip -o -d ~/ .vscode-server-insiders.zip

可用upload脚本上传 windows

upload.bat test 10.246.34.79

linux

upload.sh test 10.246.34.79

3. 安装remote相关插件

打开插件页面 选择从VSIX安装插件 或 Ctrl+Shift+P 输入VSIX安装插件 (setup目录ms-vscode-remote开头的插件全部安装) 其他插件看自己需求

4. 打开远程资源管理器

4.1. 选择ssh targets 点+号创建一个新的链接

4.2. 输入 ssh 账号@IP地址 -A

例:

4.3. 右键IP地址

例:

右键 10.246.34.79 -> connect to host

4.4. 输入密码

链接成功会显示绿色图标

4.5. 打开工作区

注意: 这个工作区是指远端工作区 非本地 成功的情况 会显示 [SSH: 10.246.34.79]

这里我们打开sample工程 便于测试调试功能

4.6. 安装cpptools-linux.vsix插件

4.7. 编译调试

4.7.1. 注意: 例子工程使用了cmake3.2+

安装之后需要ln一下.

sudo rm -rf /usr/bin/cmake
sudo ln /usr/bin/cmake3 /usr/bin/cmake

4.7.2. 先编译项目

4.7.3. F9设置断点

4.7.4. F5调试, 选择C++ (GDB/LLDB), 后面默认即可(选gcc/g++后续会报错 别选错了)

4.7.5. 得到默认启动json配置文件

4.7.6. 设置为合理的值, 下图为sample例子调试设置

4.7.7. F5开始调试

4.8. END

注意事项: 在外网使用如果本身没有FQ, 请关闭更新, 原因是.vscode-server-insiders.zip的版本与客户端的版本必须保持完全一致.

vscode-ssh's People

Contributors

brinkqiang 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.