I am trying to debug on very big Makefiles. I asked this same question here: http://www.edaboard.com/thread324433.html The thing that I'm not sure about is if there is any way to debug using breakpoints?
If the answer given to me is right, could someone please let me know more exactly how I can use breakpoints in Makefile?
You can't use 'breakpoints' and "step through" a Makefile. There are several recommended methods for debugging:
$(info) statements to display values of variables $(warning) statements - it is better than info, because it shows the line number$(eval) temporarily with $(info) to see what $(eval) expands tomake parsing the makefiles - use make -pmake run: use make --debugI understand you are a newbie and want to know exactly how to do the above, but I am not going to tell you. I just outlined the steps above for you and you must go and study yourself. There is no other way. A few years ago I also had to study this and while I was doing that, I was asking a lot of silly questions. There is no other way to learn.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With