Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

debugger issue in Dynamics 365

(0) ShareShare
ReportReport
Posted on by

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?

attachprocess.jpg

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.

debugger.jpg

*This post is locked for comments

  • Saurabh_star Profile Picture
    Saurabh_star on at
    RE: debugger issue in Dynamics 365

    Hi Ievgen,

    I couldn't locate the add-in you mentioned in the visual studio, attached screenshot.

    loadsymbol.jpg

    Also, loading symbol from current solution is unchecked.

    loadsymbol.jpg

    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.

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: debugger issue in Dynamics 365

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans