Debugging opens disassembly view in a makefile application Follow
When I try to debug my project, it opens it in disassembly view rather than the source code and therefore skips all the breakpoints put in place. I am new to C so this probably something that i'm doing wrong but i really need some help.
Here is a copy of my Makefile
TARGET = prog
CC = gcc
CFLAGS = -g -O0 -Wall -Wextra
$(TARGET): basic-test-suite.o matrix.o unity.o
$(CC) $(CFLAGS) basic-test-suite.o matrix.o unity.o -o prog
basic-test-suite.o: basic-test-suite.c matrix.h unity.h
$(CC) $(CFLAGS) -c basic-test-suite.c -o basic-test-suite.o
matrix.o: matrix.c matrix.h
$(CC) $(CFLAGS) -c matrix.c -o matrix.o
unity.o: unity.c unity.h
$(CC) $(CFLAGS) -c unity.c -o unity.o
rm -rf *.o prog
Please sign in to leave a comment.
Please enable debugger logging as described here, reproduce the issue and send the resulting idea.log file (`Help | Show Log in ...`) to clion-support at jetbrains.com. Do not forget to disable debug logging after that. Note that logs might contain private user's information (like file paths and names).