From d5ac249b28f903fc4381c8cfed94fef6b991b07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tja=C5=BE=20Vra=C4=8Dko?= Date: Mon, 30 Jun 2025 14:10:48 +0200 Subject: [PATCH] fix: gdb (east debug) not working correctly --- ncs-zephyr/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ncs-zephyr/Dockerfile b/ncs-zephyr/Dockerfile index fe2ed60..c98d5bb 100644 --- a/ncs-zephyr/Dockerfile +++ b/ncs-zephyr/Dockerfile @@ -199,6 +199,12 @@ RUN echo "if [ -f /etc/bash_completion ]; then" >> ~/.bashrc && \ echo " . /etc/bash_completion" >> ~/.bashrc && \ echo "fi" >> ~/.bashrc +# Fix GDB-PY not working +# We tell GDB to ignore $PYTHONPATH and $PYTHONHOME environment variables +# as they are set to point into the nrfutil toolchain. +# We need GDB-PY to use the system python3.10 and the system python libs +# (Python3.10 is the default python version in Ubuntu 22.04). +RUN echo "set python ignore-environment on" > ~/.gdbearlyinit ############# # ZSH image #