Can't debug with CMake [message #1851725] |
Wed, 13 April 2022 20:25 |
Alexsander Oliveira Messages: 4 Registered: April 2022 |
Junior Member |
|
|
Hi!
I'm trying to create a new CMake project in order to do some tests with a library. After some coding, compiling and executing, it came the opportunity to try the debugger. At that point, I discovered that CMake projects created by Eclipse can't be debugged, they always result in a "No source available for "main() at..." message. Even the most basic "hello world" project can't accomplish that task.
I'm using Eclipse 2022.03 (4.23.0) on a Debian Bullseye system, cmake version 3.18.4.
Thanks in advance.
[Updated on: Thu, 14 April 2022 12:41] Report message to a moderator
|
|
|
|
|
|
|
|
Re: Can't debug with CMake [message #1851882 is a reply to message #1851870] |
Thu, 21 April 2022 00:11 |
Gleb Plekhotko Messages: 5 Registered: April 2022 |
Junior Member |
|
|
>>Tauno Voipio
Yep, but if it has been already posed why not to lend a hand?
>> Alexsander Oliveira
It's very difficult to figure out what's going on remotely. You should either present your complete CMakeLists.txt file, build logs and debugger settings. Or (and that is recommended) first put off CMake, and play a little with a native Eclipse project. Just use project wizard, write a little test project and peek how it behaves. Then check settings and compare them with ones you've put into your CMake script. Oh, and don't forget to peek GCC manual too. You must understand
[Updated on: Thu, 21 April 2022 00:11] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05494 seconds