Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Debugger problem in D365
Finance forum

Debugger problem in D365

(0) ShareShare
ReportReport
Posted on by 6,455

Hello,

I have problem debugging the code.

I have gone through many links of how to setup the debugger (Unchecked "Load symbols only for items in the solution", Attaching process, Loading symbols for all modules, etc...), but no luck.

Even if I just create a runnable class (job), breakpoint is not hit neither there.

What else can I check?

  • syed baber Profile Picture
    11,633 on at
    RE: Debugger problem in D365

    Excellent Marcos. This solution worked for me.

  • Sanjay kumar singh Profile Picture
    240 on at
    RE: Debugger problem in D365

    Hi In My case,I did some setting at Symbol level5025.AllModules_5F00_Debugger.png

    And Breakpoint is catching in Solution and without solution at VS level.But Symbol loading takes time,because it loads all modules symbol.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Debugger problem in D365

    Hi,

    I've gone through the same issue and none of the answers above solved the issue. Basically what solved the issue was to load manually one of the symbols on visual studio on Visual Studio > Dynamics 365 > options > Debbugging > Symbols > load only specified modules:

    8664.asds.png

    You must specified the module file for the object which you want to debug. The module files can be found on the Bin folder of the respective package i.e:

    C:\AOSService\PackagesLocalDirectory\ApplicationSuite\bin\Dynamics.AX.ApplicationSuite.Table.TrvExpTrans.netmodule

    I'm not sure why the issue was happening, but it worked out smoothly after I've loaded the symbols manually for the first time.

    Cheers,

    Marcos Vinicius Chiovitti.

  • Suggested answer
    DiegoAraujo Profile Picture
    35 on at
    RE: Debugger problem in D365

    It works for me Minoru, thanks for sharing.

    Please extend the greetings to Arnaldo as well :)

  • Suggested answer
    Mauricio Minoru Matsumoto Profile Picture
    10 on at
    RE: Debugger problem in D365

    I had the same problem and with the help of my friend Arnaldo Ono I found the solution, you need to load Load All Symbols in Visual Studio> Debug> Options> Debugging> Symbols> Load All Symbols. 

  • Johnny Profile Picture
    6,455 on at
    RE: Debugger problem in D365

    I think there is problem with generating the pdb files. They are not loaded when I attach the process. It says "Binary was not built with debug information".

    In configuration manager I have set "Debug" and "Any CPU".

    What else to check?

    Thanks.

  • Sukrut Parab Profile Picture
    71,682 Moderator on at
    RE: Debugger problem in D365

    Make sure you are running VS as admin. Also make sure user which you r using to open table browser or menu item from VS has Sys admin role assigned

  • Johnny Profile Picture
    6,455 on at
    RE: Debugger problem in D365

    Hi Andre,

    yes.

    The problem might be that to access VM (devbox) I use different credentials (doman\axadmin), but for visual studio and client environment different credentials are used (the one that is associated with msdn subscription j.almeida@realDomain.com).

    This makes problem in case if I want to open "Table browser" from visual studio, or if I try to open any menu item. It gives error message, that I have insufficient rights to view the form.

    So, same error is displayed when I have breakpoint enabled on my job, set it as startup object and click start. In this case before breakpoint is hit some form is trying to be opened (btw, is this the default behavior of D365 debugger that client form is opened before breakpoint is hit?) which gives error that I have insufficient rights.

  • André Arnaud de Calavon Profile Picture
    294,217 Super User 2025 Season 1 on at
    RE: Debugger problem in D365

    Hi Johnny,

    You should setup a startup object on a visual studio project. Then start this object from within visual studio. Can you verify if you are following this procedure?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,217 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,978 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans