如何使用错误消息字符串定位方法?

How to locate the method using an error message string?

我想知道这个错误代码位于 AOT 中的什么位置。想知道了解结构和开发自定义代码的路径。

Transaction has been selected, for settlement, although settlement type: none was selected

我通常使用两种方法中的一种来定位消息字符串。

  1. 前提是cross reference is updated (it should be in dev) use the "Label editor" to to search for then string,

  2. info.add 方法顶部放置一个断点,如果需要则禁用 CIL,然后重新运行以获取调用调试器的错误消息,see this answer.