Hi Guys,
I am facing this weird issue with the debugger in D365. Let me know if someone has encountered similar thing or got any useful resolution tips.
Firstly, I don't understand the difference between w3wp.exe and iisexpress.exe which appears when you go to attach a process in visual studio. sometimes one appears in the list sometimes the other and both serves the same purpose. can someone tell what's the logic behind?
Secondly, the main issue, after attaching to the process, it doesn't enable the breakpoint often. Sometimes the issue gets resolved after loading the symbols manually / recompiling / iisreset, but sometimes it just doesn't enable no matter what I do. after a few hours or next day without any compilation I try the same steps, it starts working which leaves me in frustration.
Anyone who can suggest a resolution to this can claim a million dollar.
*This post is locked for comments
Hi Ievgen,
I couldn't locate the add-in you mentioned in the visual studio, attached screenshot.
Also, loading symbol from current solution is unchecked.
I do see w3wp.exe service sometimes in the list, so not sure if as you said it's no longer available after last update, then how come it appears intermittently. But the bigger question is why won't the symbols load.
Now I am thinking is this something to do with internet explorer, should I shift to Chrome for debugging. I will give that a try.
Hi Saurabh Mukherjee,
There was a change in access rights to VMs managed by MS after PU12. You do't have access to admin user anymore there and without admin rights you cannot attach to w3wp.exe. So while Visual Studio is closed AX runs under w3wp. When you open VS, it starts iisexpress, so you can attach to it and debug your code. Sometimes it does not start, that's why you have "Restart IIS express" button under D365 -> Addins in VS and it often helps.
Issue with symbols may be caused by "Load symbols only for items in the solution" tick box, so you need to be sure that it's disabled.
To avoid issues with attach I usually use empty Runnable class as starting object to actually start AX in the debug mode.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156