当前位置:网站首页>Gdb+vscode for debugging 3 - vscode and GDB remote debugging
Gdb+vscode for debugging 3 - vscode and GDB remote debugging
2022-07-19 02:13:00 【bisheng95】

Execute the program remotely , Debug the program locally
The way 1.
Remote as server End , perform
gdbserver ip:port HelloGDB
Local as client End
gdb
(gdb) target remote ip:port
The way 2.
Remote as server End , Run the program first
./HelloGDB
Then check it out HelloGDB The process number of
ps aux | grep HelloGDB
Suppose you see 6666
gdbserver ip:port 6666
Local as client End
gdb
(gdb) target remote ip:port
Local as client The end can also adopt vs2019 debugging ,windows Next vs2019

Can be in vs2019 Debug under the same condition
边栏推荐
猜你喜欢

散列表、布隆过滤器、分布式一致性hash

成信大ENVI_IDL第三周课堂内容1:读取OMI数据(HDF5文件)以及输出+解析

Chengxin University envi_ IDL third week class content 1: reading OMI data (HDF5 file) and output + parsing

Gdb+vscode for debugging 0 - environment configuration

leetcode力扣经典问题——42.接雨水

池式组件之内存池篇

ENVI_IDL:读取所有OMI产品的NO2柱含量并计算月均值、季均值、年均值+解析

Uncaught syntaxerror: unexpected token '< is reported on the blank page of the H5 uniapp package‘

STL--stack容器

CAN协议通信
随机推荐
Basic principle and parameter interpretation of operational amplifier
Build map reduce development environment
(with word operation and video explanation) map registration using ArcGIS_ Projection transformation_ General map making_ Thematic map making
Nacos配置管理
05 design of street lamp control fault detection system based on ZigBee
搭建Hue环境
STL--vector容器
How to understand volatile and how to use it
ENVI_ IDL: read OMI data (HDF5) and output it as GeoTIFF file + detailed parsing
Hash table, bloom filter, distributed consistency hash
Engineering compilation: makefile and cmake (I)
Chengxin University envi_ IDL third week class content 1: reading OMI data (HDF5 file) and output + parsing
动态规划问题 - 小兵向前冲
Installing MySQL and JDBC on Windows
Characteristics and application points of electrolytic capacitor
Recursive and recursive learning notes
Oozie integrated shell
指針常量與常量指針愛恨情仇
Dueling DQN的理论基础及其代码实现【Pytorch + Pendulum-v0】
二叉树的遍历