current position:Home>Clion remote debugging ubutun server, blood lessons

Clion remote debugging ubutun server, blood lessons

2022-04-29 07:25:26Watch the moon and listen to the wind

I tried gdb、 Log 、clion, It's better to find the page
First step : Create a cmake project , The configuration is as follows
 Insert picture description here
The second step :
 Insert picture description here
The third step :
 Insert picture description here
The following two are the root directory of the local project and the root directory of the remote project
 Insert picture description here
Step four : Synchronize two projects
 Insert picture description here
Step five : Start remote project , Find the process number of

ps -ef

For example, mine is 6718, No, gdb and gdbserver Download it yourself
 Insert picture description here
Step six : Add a startup entry , And start the debug,
 Insert picture description here
At this time, you will find that the remote will become
 Insert picture description here
This is success !!!
I'm so tired , Toss around for hours

explain : Turn on the debug switch , Always report this mistake , It turns out that my server didn't release this port , Piss me off , It's normal when you let go
 Insert picture description here

copyright notice
author[Watch the moon and listen to the wind],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204290500007135.html

Random recommended