web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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,478

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?

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,141 Super User 2025 Season 2 on at

    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?

  • Johnny Profile Picture
    6,478 on at

    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.

  • Sukrut Parab Profile Picture
    71,710 Moderator on at

    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,478 on at

    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.

  • Suggested answer
    Mauricio Minoru Matsumoto Profile Picture
    10 on at

    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. 

  • Suggested answer
    DiegoAraujo Profile Picture
    35 on at

    It works for me Minoru, thanks for sharing.

    Please extend the greetings to Arnaldo as well :)

  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • Sanjay kumar singh Profile Picture
    240 on at

    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.

  • syed baber Profile Picture
    11,633 on at

    Excellent Marcos. This solution worked for me.

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 > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans