Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Tracking macro (macro execution )
Tracking macro [message #1800104] Thu, 20 December 2018 03:51 Go to next message
Anne Creek is currently offline Anne CreekFriend
Messages: 275
Registered: September 2014
Senior Member
I can expand a macro "statically'.
By putting a cursor on the macro and then doing "Explore macro expansion (steps) "

1. Can I get a printout of all the expansion steps?
2. How do I dynamically trace execution of specific macro?
I used "preprocessor " option -D but it did no produce desired effect.



Re: Tracking macro [message #1800106 is a reply to message #1800104] Thu, 20 December 2018 05:08 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
There's no eady way.
You can use the preprocessor option (-E for GCC)
But the output is meant for the compiler and not humans.
You can correlate it with the filename line number tags
But they aren't easy to read.
You'll have to consult the gcc docs.
Previous Topic:Problem with ESP8266
Next Topic:Using managed build, the Language Settings Providers sometimes get reseted to default
Goto Forum:
  


Current Time: Fri Apr 26 13:30:02 GMT 2024

Powered by FUDForum. Page generated in 0.02454 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top