3 ms·
Unless I can step through original source code in debugger, watch variables etc. etc. I could not accept any source to source translator in my practice.
by FpUser 3y ago
Unless I can step through original source code in debugger, watch variables etc. etc. I could not accept any source to source translator in my practice.
- nathanrf 3y agoIt is a good thing that cppfront lets you do that, then! Cppfront generates #line pragmas which tell the generated .cpp file which source lines to "blame" for each piece of generated code. This isn't something new and fancy for cppfront, it's a bog-standard pragma that your debugger already understands. So it will work the exact same as your current debugging workflow even if you mix cpp and cpp2 source files.
- wheybags 3y agoI'm working on a hobby project language that generates plain C as output, and debugger integration has been one of my big worries. If that works, then this is awesome, thank you!