install remote debugging & programming plugin "Remote Development " on local vscode editor, you can directly modify and debug the code on the server instead of vim. it has code highlighting and completion functions, just like using VScode locally.
1.install ssh-server on remote linux server machine (CentOS).
//show ssh service status, if it is showing the "Loaded: error (Reason: No such file or directory)" which means that you need to install ssh service. If it is appeared "Active: inactive (dead)" which means you should open ssh service. $sudo service sshd status //install ssh (centos) $sudo yum install sshd or $sudo yum install openssh-server //open service, if it is showing "Active: active (running) " means that the service was already start $sudo service sshd start //uninstall ssh $sudo yum remove sshd
use "node --inspect=xxx.xxx.xxx.xxx:9229 xx.js" to appoint a port to remote debugging.
2.install ssh-client on local machine.
//my mac machine was already install git, so it pre-install the ssh-client(Comes pre-installed). or $sudo yum install openssh-server && sudo systemctl start sshd.service && sudo systemctl enable sshd.service $ssh root@xxx.xxx.xxx.xxx //show error: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @, ECDSA host key for 172.xxx.xxx.xxx has changed and you have requested strict checking. because the ssh will check the public key in ~/.ssh/known_hosts to avoid dns DNS when you connect. the checking weight is based on the StrictHostKeyChecking(no, ask, yes). you need to remove the rsa information by ip in the path "~/.ssh/known_hosts". $vi ~/.ssh/known_hosts find the ip and remove. or $ssh-keygen -R hostname then retry to connect to ssh-server by command: $ssh root@xxx.xxx.xxx.xxx
3.install VSCode & extension pack "Remote Development".
after install remote development, Remote-SSH:Connect to Host->Configure SSH Hosts to choose a config file, prepared to config the host & hostname & username to this file. then save and connect to ssh-server by passward (alse can use public key).
[Optional] While password-based authentication is supported, we recommend setting up key based authentication on the host you plan to connect to by adding your local public SSH key to ~/.ssh/authorized_keys
on the host.
Select Remote-SSH: Connect to Host... from the Command Palette (F1) and enter the host and your user on the host in the input box as follows: user@hostname
.
After a moment, VS Code will connect to the SSH server and set itself up. VS Code will keep you up-to-date using a progress notification and you can see a detailed log in the Remote - SSH
output channel.
After you are connected, you'll be in an empty window. You can then open a folder or workspace on the remote machine using File > Open... or File > Open Workspace...
The window will reload and the folder or workspace you selected will open. If you have multiple VS Code windows open, you can refer to the Status bar to see which one is connected to the host.
Clicking on the Status bar item at any time will provide a list of remote commands while you are connected.
File > Close Remote Connection to disconnect from the host.
more information you can check here: https://code.visualstudio.com/docs/remote/ssh
相关推荐
Linux Debugging and Performance Tuning (Prentice, 2005)
Visual Studio 2005 Remote Debugging.mht
Draw XXL是一套广泛的可视化调试和开发工具。 它可以作为组件使用,而不需要任何代码,或者像调试行一样,从代码中的任何地方进行一行调用。 无论你只是想从unity有限的Debug.DrawLine()中增加你的选择,通过可视...
### Debugging the Development Process #### 书籍概述 《Debugging the Development Process》是Stephen A. Maguire撰写的一本关于软件开发过程中的调试与优化的重要著作。该书由Microsoft Press出版,首次出版于...
### Debugging the Development Process 《Debugging the Development Process》是由微软的经典著作《Writing Solid Code》的作者Stephen A. Maguire撰写的一本书。该书于1994年出版,主要探讨了软件开发过程中遇到...
《Debugging the Development Process》 - 无论是写代码的还是不写代码的人都应该读读。 《Write Clean Code》- 作者在微软开发了n年(n > 2)程序后的经验总结,比较适合软件开发设计人员。
《Apple Debugging and Reverse Engineering V3.0》是一本深入探讨苹果系统调试和逆向工程的资源合集,包括PDF和epub格式的电子书,以及可能附带的代码示例。这本书旨在帮助读者提升使用LLDB(LLVM Debugger)进行...
"Linux Debugging and Performance Tuning Tips and Techniques"这个压缩包文件显然是为了帮助用户掌握这些技能而设计的。这里,我们将深入探讨其中可能包含的一些关键知识点。 **Linux Debugging** 1. **日志分析*...
### Linux调试与性能调优技巧和技术 #### 一、概览 《Linux调试与性能调优:技巧和技术》是一本全面介绍如何在Linux系统中进行软件调试和性能优化的专业书籍。作者Steve Best凭借其在IBM丰富的Linux系统优化经验,...
We’ll show you how to configure and administer your instance, and then move on to building strong user interfaces and creating powerful workflows. We also cover other key elements of ServiceNow, ...
英文原书名:Debugging the Development Process 作者:史蒂夫·马魁尔 译者:苏斐然 作者详细描述了他在美国领导项目的各种实际的策略方法,教您如何开发高质量的软件,而且绝不延误。本书中,作者以直率、真诚的...
Linux调试技术和性能调优手段,chm格式
1. **Remote Development** 扩展包:由VSCode官方提供,包含了Remote-SSH、Remote-WSL和Remote-Containers三个子扩展,用于远程连接到不同的环境。这里我们需要的是Remote-SSH,它允许我们连接到Linux服务器。 2. *...
Inside Windows Debugging - Practical Debugging and Tracing Strategies 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 ...
By automatically synchronizing the source files on the client with the server and replacing GNU toolsets with some small stubs for them, Uniwin presents a seamless interface for remote development....
《Linux调试与性能优化》是针对Linux系统进行故障排查和性能提升的重要参考资料。...文档《Linux Debugging and Performance Tuning》将详细讲解这些内容,对于系统管理员、开发者和Linux爱好者来说是一份宝贵的资源。
Software Development, Design and Coding With Patterns, Debugging, Unit Testing, and Refactoring 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索...
In Advanced Apple Debugging and Reverse Engineering, you’ll come to realize debugging is an enjoyable process to help you better understand software. Not only will you learn to find bugs faster, but...
Pro Python Best Practices: Debugging, Testing and Maintenance by Kristian Rother English | 17 Apr. 2017 | ISBN: 1484222407 | 264 Pages | PDF | 5.34 MB Learn software engineering and coding best ...