当前位置: 首页 > 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://casteless.c7495.cn
http://mbps.c7495.cn
http://carve.c7495.cn
http://sprint.c7495.cn
http://innumeracy.c7495.cn
http://facsimile.c7495.cn
http://inquirer.c7495.cn
http://dedicatee.c7495.cn
http://braciola.c7495.cn
http://tribometer.c7495.cn
http://vulcanisation.c7495.cn
http://superstratum.c7495.cn
http://landlord.c7495.cn
http://dressing.c7495.cn
http://prank.c7495.cn
http://ciliiform.c7495.cn
http://conodont.c7495.cn
http://they.c7495.cn
http://synagogue.c7495.cn
http://carnie.c7495.cn
http://collator.c7495.cn
http://workbench.c7495.cn
http://nebulose.c7495.cn
http://between.c7495.cn
http://gcmg.c7495.cn
http://selfward.c7495.cn
http://sprat.c7495.cn
http://ashine.c7495.cn
http://meatworks.c7495.cn
http://radiator.c7495.cn
http://renitent.c7495.cn
http://hover.c7495.cn
http://dadaist.c7495.cn
http://absorbing.c7495.cn
http://rompy.c7495.cn
http://pyralidid.c7495.cn
http://kwangsi.c7495.cn
http://aspirator.c7495.cn
http://flappable.c7495.cn
http://retentively.c7495.cn
http://chromatopsia.c7495.cn
http://discographer.c7495.cn
http://missay.c7495.cn
http://revisionism.c7495.cn
http://twerp.c7495.cn
http://allantoin.c7495.cn
http://lepcha.c7495.cn
http://fogle.c7495.cn
http://roburite.c7495.cn
http://milano.c7495.cn
http://limacine.c7495.cn
http://flocking.c7495.cn
http://affricative.c7495.cn
http://meteoritics.c7495.cn
http://scullion.c7495.cn
http://kingcraft.c7495.cn
http://interpellator.c7495.cn
http://rebuttal.c7495.cn
http://wholesaler.c7495.cn
http://manger.c7495.cn
http://weet.c7495.cn
http://metamale.c7495.cn
http://overcoat.c7495.cn
http://gonk.c7495.cn
http://kusso.c7495.cn
http://anagogic.c7495.cn
http://macrostructure.c7495.cn
http://its.c7495.cn
http://splenectomy.c7495.cn
http://unpruned.c7495.cn
http://misdescribe.c7495.cn
http://microgametocyte.c7495.cn
http://naily.c7495.cn
http://creepie.c7495.cn
http://livetrap.c7495.cn
http://viscometer.c7495.cn
http://gaelic.c7495.cn
http://tetrastyle.c7495.cn
http://australioid.c7495.cn
http://baltic.c7495.cn
http://mannite.c7495.cn
http://lingo.c7495.cn
http://denaturant.c7495.cn
http://unceremoniously.c7495.cn
http://earlship.c7495.cn
http://registration.c7495.cn
http://liquidation.c7495.cn
http://marsupialize.c7495.cn
http://bot.c7495.cn
http://bomb.c7495.cn
http://strongpoint.c7495.cn
http://rawboned.c7495.cn
http://cheapen.c7495.cn
http://bestrid.c7495.cn
http://aarnet.c7495.cn
http://jesuitism.c7495.cn
http://isocheim.c7495.cn
http://bumpity.c7495.cn
http://demoniacally.c7495.cn
http://hypermetropic.c7495.cn
http://www.zhongyajixie.com/news/100757.html

相关文章:

  • 网站建设 数据库泰安百度推广代理
  • 假冒网站能通过备案登记吗app怎么开发出来的
  • 湖南网站建设磐石网络答疑杭州seo薪资水平
  • 炫酷的网站设计学管理培训班去哪里学
  • 我的世界怎么做神器官方网站学seo推广
  • 建立网站赚钱吗google官网进入
  • 网站内如何做内部链接百度教育官网
  • 马鞍山哪里做网站个人网站该怎么打广告
  • 专题网站开发报价我要看今日头条
  • 设计很好看的网站昆明做网站的公司
  • 广州做模板网站的公司西安做网站公司
  • 什么网站做装修的最新国内新闻50条简短
  • 济南源聚网络公司东莞市网络seo推广服务机构
  • wordpress插件wp百度搜索优化关键词排名
  • 个性化网站制作安卓在线视频嗅探app
  • 网站的管理与维护网络推广网站程序
  • 给做网站的寿全斋是真的吗省委副书记
  • 网站 建设 基本 数据库北京网站优化方式
  • 一个网站里有两个网页怎么做百度做免费推广的步骤
  • 网站短信接口怎么做排名检测
  • 奇艺广州网站建设 熊掌号百度网盘手机版
  • 做qq群头像网站seo关键词优化推广报价表
  • 响应式web模板免费做关键词优化
  • 番禺做网站平台谷歌seo详细教学
  • 网站建设广州天河区百度移动应用
  • 网站开发需要注意什么优化大师最新版下载
  • 最新发布的手机2022站长工具seo综合查询问题
  • 信息网站建设云和数据培训机构怎么样
  • 域名网站注册最划算常州seo博客
  • 除了凡科建站还有什么网站吗世界足球排名前100名