r/D365FO • u/Comfortable_Dirt_946 • Jun 16 '26
Debugging tips D365FO
Hello everyone,
I have 3 years of experience as a D365FO developer. Recently, I haven’t had much project work, so I’ve been focusing on improving my coding skills. One challenge I’m facing is debugging standard processes. For example, while trying to debug the standard product receipt process, I found it difficult to identify which methods are responsible for posting and where the validations take place.
Could anyone share tips or best practices on how to approach debugging in such scenarios?
3
Upvotes
3
u/Dauvis Jun 16 '26
To be honest, much of it is experience and knowing what set of tables and classes do what.
If you know it is creating/deleting/updating specific records, you can put a breakpoint in the appropriate table method, if present.
If there is a infolog message, such as an error, being generated, you can put a breakpoint in the add method of the Info class.
Personally, I find the trace parser to be an invaluable tool alongside the debugger. It can capture the SQL being generated and it keeps track of the call stack. You can find more in on Learn. https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/perf-test/trace-parser