I was looking how to make a wizzard to turn a .pde file into a .cpp files that can be debuged using a debugger. In such a way that you don’t see a (lot of) difference with the original .pde file.
I ascertained that you use the following to turn a .pde into a .cpp:
contents of main.cxx
And all prototypes of all the functions are extracted automatically and put between #include “WProgram.h” and “Sketch code”.
Did I forget something?
For debugging I would also like to change main.cxx in a seperate .o file. And put all prototypes in WProgram.h (only for debugging).
So you just get:
And #include “WProgram.h” can be treated as white space by the sketch developper.