Bug 451562

Summary: Docker Debugging KDevelop
Product: [Applications] kdevelop Reporter: Martin <martin.marmsoler>
Component: All build toolsAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Martin 2022-03-16 10:30:58 UTC
Hello,
I'm trying to debug KiCad https://gitlab.com/kicad/code/kicad on Windows. Instead of using MSYS2 which made problems for me I try to go the way debugging with a docker file.

Kicad provides officially a docker file for it: https://gitlab.com/kicad/kicad-ci/source_containers.git

I have seen a post that KDevelop supports docker integration:
https://www.proli.net/2017/05/23/kdevelop-runtimes-docker-and-flatpak-integration/
But I did not find out how to use it.

In QtCreator they used a workaround:
https://www.qt.io/blog/docker-builds-from-qtcreator
They created a script which is passed as cmake executable to QtCreator which internally runs the cmake command in the docker container.

```
HOST_WORK_PATH=<Path to Kicad Repository>/kicad
CONTAINER_WORK_PATH=/kicad
docker run --rm -v $HOST_WORK_PATH:$CONTAINER_WORK_PATH -w /$CONTAINER_WORK_PATH/build -v/tmp:/tmp kicad_ubuntu:20.04 cmake $@
```

This works fine when I execute it in a command line. But I would like to use somehow an IDE to be able to debug.

Can you give me a hint, how to combine the information to be able to use KDevelop to debug the software?

SOFTWARE/OS VERSIONS
Windows: 10