User forums > Using Code::Blocks
How to debug macros
mickagame:
Does someone know how to set code::block to allow debug of macros?
I've tried to compile with -gdwarf-2 -g3 flags but no results ...
ollydbg:
--- Quote from: mickagame on March 22, 2009, 11:20:10 am ---Does someone know how to set code::block to allow debug of macros?
I've tried to compile with -gdwarf-2 -g3 flags but no results ...
--- End quote ---
What do you mean by "debug macros"? Could you give a simple example?
mickagame:
Have the possibility to do "step by step" in macros defined in .h files.
Actually when the current step in debugger is a macro when you do step by step the debugger doesn't go in the macro.
ollydbg:
Really?
I don't think CB can do this :D
I haven't heard this function before.
Which IDE can do this? :shock:
Ceniza:
Macros are not compilable code, they are "generators". In other words, macros do not generate symbols or binary code at all, so there is no way you can step into them. What you can do, at most, is to preprocess a source file and see how macros were expanded... and that's it.
Navigation
[0] Message Index
[#] Next page
Go to full version