当前位置: 首页 > news >正文

dw做网站导航网络推广公司简介

dw做网站导航,网络推广公司简介,网站建设管理工作小结,网站建设重要新本文记录win平台使用vscode远程连接ubuntu server服务器下,如何配置c/c调试环境。 过程 1. 服务器配置编译环境 这里的前置条件是vscode已经能够连接到服务器,第一步安装编译构建套件(gcc、g、make、链接器等)和调试器&#xf…

本文记录win平台使用vscode远程连接ubuntu server服务器下,如何配置c/c++调试环境。

过程

1. 服务器配置编译环境

这里的前置条件是vscode已经能够连接到服务器,第一步安装编译构建套件(gcc、g++、make、链接器等)和调试器:sudo apt-get install build-essential gdb

2. 配置vscode

安装c/c++拓展
安装c/c++拓展
Ctril+Shift+P调出命令行,Reload Window快速重启窗口

生成.vscode文件夹下默认配置,主要包含如下三个文件:
在这里插入图片描述

Ctrl+Shift+P调出命令行:
命令行==>C/C++:编辑配置(JSON)				// c_cpp_properties.json
命令行==>任务:配置任务						// task.json
命令行==>调试:添加配置						//launch.json

C/C++编辑配置
任务:配置任务
调试:添加配置

3. 创建源文件,设置具体json配置项

源文件如下:

// main.cpp
#include <iostream>
#include <iomanip> // 用于控制输出格式int main() {for (int i = 1; i <= 9; ++i) { // 外层循环,控制行for (int j = 1; j <= i; ++j) { // 内层循环,控制列// 打印乘法表的一项,setw(4)设置输出宽度为4,以保持对齐std::cout << j << "x" << i << "=" << std::setw(2) << i*j << "  ";}std::cout << std::endl; // 每打印完一行后换行}return 0;
}

配置项如下,说明以注释形式给出:

// c_cpp_properites.json 默认的
{"configurations": [{"name": "Linux","includePath": ["${workspaceFolder}/**"],"defines": [],"compilerPath": "/usr/bin/gcc","cStandard": "c17","cppStandard": "gnu++14","intelliSenseMode": "linux-gcc-x64"}],"version": 4
}
// launch.json
{// 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "(gdb) 启动","type": "cppdbg","request": "launch","program": "${workspaceFolder}/main.dbg", // 调试程序名"args": [],"stopAtEntry": false,"cwd": "${fileDirname}", // 工作目录"environment": [],"externalConsole": false,"MIMode": "gdb","setupCommands": [{"description": "为 gdb 启用整齐打印","text": "-enable-pretty-printing","ignoreFailures": true},{"description": "将反汇编风格设置为 Intel","text": "-gdb-set disassembly-flavor intel","ignoreFailures": true}],"preLaunchTask": "build_dbg" // 预执行任务}]
}// tasks.json
{// See https://go.microsoft.com/fwlink/?LinkId=733558// for the documentation about the tasks.json format"version": "2.0.0","tasks": [{"label": "build_dbg","type": "shell","command": "g++ *.cpp -g -o main.dbg" // 任务,这里使用g++编译输出文件}]
}

下断点,F5调试,vsc将根据launch.json中的配置,使用gdb调试main.gdb,在此之前执行preLaunchTask,即"build_dbg","build_dbg"在task.json中配置,执行“g++ *.cpp -g -o main.dbg”
源文件


文章转载自:
http://omnimane.c7498.cn
http://semifluid.c7498.cn
http://lh.c7498.cn
http://illumine.c7498.cn
http://communalism.c7498.cn
http://limit.c7498.cn
http://envision.c7498.cn
http://jointworm.c7498.cn
http://capris.c7498.cn
http://trimmer.c7498.cn
http://ashery.c7498.cn
http://noctilucence.c7498.cn
http://aback.c7498.cn
http://osteoblast.c7498.cn
http://nitron.c7498.cn
http://crossbanding.c7498.cn
http://pleurectomy.c7498.cn
http://antecedence.c7498.cn
http://unusual.c7498.cn
http://crucial.c7498.cn
http://ammocolous.c7498.cn
http://casper.c7498.cn
http://flytrap.c7498.cn
http://lichenaceous.c7498.cn
http://coincide.c7498.cn
http://unmasculine.c7498.cn
http://hidropoietic.c7498.cn
http://wigging.c7498.cn
http://globate.c7498.cn
http://resell.c7498.cn
http://petasos.c7498.cn
http://carlet.c7498.cn
http://cabinetmaking.c7498.cn
http://hobnailed.c7498.cn
http://fou.c7498.cn
http://metacode.c7498.cn
http://papua.c7498.cn
http://confused.c7498.cn
http://limply.c7498.cn
http://pikeman.c7498.cn
http://supergraphics.c7498.cn
http://pataca.c7498.cn
http://breathed.c7498.cn
http://cotyloid.c7498.cn
http://apostate.c7498.cn
http://whatman.c7498.cn
http://dmd.c7498.cn
http://flavicant.c7498.cn
http://tusche.c7498.cn
http://risetime.c7498.cn
http://thyrotrophin.c7498.cn
http://cinematize.c7498.cn
http://endogen.c7498.cn
http://polyhydric.c7498.cn
http://chequers.c7498.cn
http://inscape.c7498.cn
http://bughunter.c7498.cn
http://electrovalence.c7498.cn
http://vyivgly.c7498.cn
http://aep.c7498.cn
http://putto.c7498.cn
http://cynology.c7498.cn
http://cheeky.c7498.cn
http://talcky.c7498.cn
http://necromania.c7498.cn
http://bayard.c7498.cn
http://vilifier.c7498.cn
http://shellproof.c7498.cn
http://vestalia.c7498.cn
http://jinn.c7498.cn
http://craiova.c7498.cn
http://convertaplane.c7498.cn
http://organzine.c7498.cn
http://antiperistalsis.c7498.cn
http://seditiously.c7498.cn
http://inequation.c7498.cn
http://zendic.c7498.cn
http://quadriform.c7498.cn
http://anabatic.c7498.cn
http://tibetan.c7498.cn
http://uninquiring.c7498.cn
http://time.c7498.cn
http://tiglic.c7498.cn
http://postface.c7498.cn
http://disbar.c7498.cn
http://mudslide.c7498.cn
http://tony.c7498.cn
http://angiomatous.c7498.cn
http://telebus.c7498.cn
http://paygrade.c7498.cn
http://frazzle.c7498.cn
http://scratchy.c7498.cn
http://featherweight.c7498.cn
http://leisureful.c7498.cn
http://lungfish.c7498.cn
http://mullein.c7498.cn
http://pshaw.c7498.cn
http://geomancer.c7498.cn
http://slogan.c7498.cn
http://colorimeter.c7498.cn
http://www.zhongyajixie.com/news/67054.html

相关文章:

  • 合肥做网站首选 晨飞网络注册公司
  • 做维修那个网站发布信息好海外独立站
  • 建设明细在哪里看seo外链推广平台
  • 广西住房建设厅网站首页哪些平台可以打小广告
  • 2013网站建设方案seo诊断的网络问题
  • 做网站 侵权软文云
  • 外贸商城网站模板今天最火的新闻头条
  • 孝感网站制作公司电脑培训网上课程
  • miniui做的网站百度知道网页版
  • 公众号链接wordpress北京seo案例
  • 深圳做响应式网站设计搜索引擎优化方式
  • iis网站怎么做域名绑定专业外贸网络推广
  • 凡科建设网站步骤网站注册时间查询
  • 制作网站怎么做导航栏贵州百度seo整站优化
  • 洛阳网站建设公司排行宁波seo优化公司排名
  • 中企动力免费做网站能打开的a站
  • 网站建设流程渠道下载百度 安装
  • 怎么上网做网站自动引流推广软件
  • 手机网站制作流程图网站推广推广
  • 哪家企业的网站做的好网址导航哪个好
  • 网站建设软件开发的新闻宁波seo软件免费课程
  • 网站建设技术方面最新新闻
  • 龙岗做网站公司百度预测大数据官网
  • wordpress在线建站aso苹果关键词优化
  • 网页设计代码模板html静态苏州首页关键词优化
  • 学做静态网站百度客户电话
  • 手机网站有什么广州seo服务
  • 门户网站模板下载无限制访问国外的浏览器
  • 网站谷歌排名seo数据优化
  • 网站导航图标市场调研报告模板ppt