Thanks all of you.
I will check out your suggestions in the next few days.

For now I got it working by running the build script with the
--build-type Debug flag which creates the Makefile in the build
directory and then I point my Codeblocks to use that.

Thanks, Jan


On 04.05.21 19:40, Robert Rembold wrote:
> Hi Jan,
> You may also try to generate a configuration for your IDE with CMake.
> This did a good job for me using Eclipse but Codeblocks should be also
> supported. See
> https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#ide-build-tool-generators
>
> Just append below argument when initializing CMake:
> -G "CodeBlocks - Unix Makefiles"
>
> Best Regards,
> Robert
>
>
> Am 02.05.21 um 14:25 schrieb Heiko Bauke:
>> Dear Jan,
>>
>> Am 01.05.21 um 12:13 schrieb Solarer:
>>> I read the section on developing on the website and have 2 questions:
>>>
>>> 1) Do you prefer patches or pull requests?
>>
>> I think, creating a pull request on GitHub is the preferred way.
>>
>>> 2) Can somebody tell me (or at least point me to a good source) how I
>>> can compile and run the code in an IDE, preferebly Codeblocks? So far I
>>> edited the code in my IDE but for building I ran the build script
>>> manually. My problem is that this does not allow me to set break points
>>> and I really need those.
>>
>> I can not say much specifically regarding Codeblocks.  When I need to
>> debug dt, my workflow is the following:
>>
>> * Build and install dt as described in
>> https://github.com/darktable-org/darktable#compile (Usually a release
>> build, sometimes a release build with debug information, rarely a
>> debug build. Debug builds are terribly slow, release builds more
>> difficult to debug due to missing debug information.)
>>
>> * Start dt.
>>
>> * Open dt sources into the ide (CLion in my case).
>>
>> * Attach debugger to the running dt process.
>>
>> Attaching a debugger to a running process may require to tweak some
>> kernel parameters depending on the Linux version, see
>>
>> https://stackoverflow.com/questions/61388840/why-wont-codeblocks-attach-to-a-process
>>
>>
>> https://www.jetbrains.com/help/clion/attaching-to-local-process.html
>>
>>
>> Regards,
>>
>> Heiko
>>
>>
>
> ___________________________________________________________________________
>
> darktable developer mailing list
> to unsubscribe send a mail to
> darktable-dev+unsubscr...@lists.darktable.org
>
___________________________________________________________________________
darktable developer mailing list
to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org

Reply via email to