How to view Kinetic source code?

Every now and then I see @hkeric.wci , @jgiese.wci , @josecgomez , etc. pull out dnSpy to help us understand something by looking at Epicor “source code”…

Well, I’m trying to understand what is going on in a particular BO method because I think there’s a bug. It is the ApplyCreditMemo._ApplyCreditMemoCC BO method.

So I download dnSpy, open the DLL, navigate to the method… but there’s nothing useful there?? It seems the real work of the method is happening elsewhere:

I’m a bit out of my element here, but what am I missing?

You are looking at the client side proxy. You need to look at the Service server side implementation.

5 Likes

Are you looking at the server or client dll? Should be looking in your server folder

Where would that be? I opened it from server assemblies:

You need to use the service dll

Got it. Thank you!

I’ll also add that sometimes I find dotPeek can do better job decompiling if you are looking at a more complex service. I find dnspy faster though

3 Likes

Your best bet also is to restart the appserver and before you do anything attach DNSpy then you can usually get really good results with breakpoints and variable resolution.

2 Likes

I’ve never lusted over on prem so much before :laughing:

5 Likes

Maybe because we were Single Tenant and owned the software before we went public cloud, but I could download the software and run the demo database locally if I wanted to step through code without hanging the system for others. Personally, I think cloud users should have this capability too. I lust for that DevOpsy stuff. :person_shrugging:

3 Likes

I hear that, although my particular exercise was not very fruitful… Just ended up being a rabbit hole / rube goldberg chain of methods and other DLLs leading into the heart of the Posting Engine which I have no business trying to “debug”… :rofl:

1 Like

That’s like organic vegetables though. It would be good for me, but its not as cool as break points in source code.

1 Like

You still get breakpoints, but only people with the SDK get the source code view. And you know where I like my source code. :wink: Git what I’m sayin’?

1 Like