I had to dig a very old project recently to change a couple of sequences.
Hundreds of units, tens of thousand methods, numerous EXIT's.
SmartInspect was a great help for me to think me inside the old code.
But, I have wasted a whole 10 hours to instrument the units, to rename EnterMethod into TrackMethod per search & replace and delete all LeaveMethod calls. That was not nice job. :rolleyes:
Can leave the complicated part with the "conditional defines" on your long-term roadmap, but continue for it relatively promptly to provide the alternative automatted instrumentation via TrackMethod?
Really, that would be a huge help.
I think it is not so much do for you ..
// PutText ( 'EnterMethod('+aMathodName+');' ) // old
PutText ( 'TrackMethod( '+aMathodName+');' ) // new instrumentation behavior
// FindMethodEnd; // old
// PutText ( 'LeaveMethod('+aMathodName+');' ) // old