Debug an Invoice Data XML Script

Activity Steps

  1. In Visual Studio, add this line of code before the return statement and confirm that the path is valid:
    Copy
    originalDocument.Save(@"C:\Temp\InvoiceScript.xml");
  2. Start the MineMarket Server and a debug version of the MineMarket Client.
  3. On the Debug menu, select Attach to Process.

    The Attach to Process screen displays.

  4. In the Available Processes list, select BulkTrak.exe.
  5. Click Attach.
  6. In the MineMarket Client, create an invoice and select the Report tab.

    The temporary XML file can be examined in an XML editor.

  7. When debugging is complete, remove the code that created the temporary XML file from the script.

    Important: Do not release an invoice data XML containing the temporary code.

  8. In the Invoice Data XML Script (script editor) in MineMarket, recompile the script and save.