Announcements
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?
Excellent Marcos. This solution worked for me.
Hi In My case,I did some setting at Symbol level
And Breakpoint is catching in Solution and without solution at VS level.But Symbol loading takes time,because it loads all modules symbol.
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:
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.
It works for me Minoru, thanks for sharing.
Please extend the greetings to Arnaldo as well :)
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.
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.
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
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.
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?
André Arnaud de Cal...
294,217
Super User 2025 Season 1
Martin Dráb
232,978
Most Valuable Professional
nmaenpaa
101,158
Moderator