I've written a method to return a calculated value as an extension of VendInvoiceDocument. As far as I can tell it works, but I have been completely unable to set a breakpoint in the code. Obviously, I've been attaching to both the w3wp.exe and Batch.exe processes and hit other breakpoints in both, but even putting a breakpoint statement in the extension method didn't cause a break.
What do I need to do to get breakpoints to work in calculated field methods?
Here's a very simplified version of the code:
[ExtensionOf(classStr(VendInvoiceDocument))]
final class VendInvoiceDocument_Extension
{
public int parmDepot(CompanyId _companyId, tableId _tableId, recId _recId)
{
str depot;
breakpoint;
VendInvoiceInfoTable vendInvoiceInfo = VendInvoiceInfoTable::findRecId(_recId);
depot = VendInvoiceInfo.InventSiteId;
// other stuff here...
return (-1);
}
}
*This post is locked for comments
I have the same question (0)