Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Debug Info message

Posted on by 87
Hi guys,
I am in the situation that i feel i lose a lot of time debugging the info messages shown on the top of the D365 web, since there i can not find the way to go directly to the line that throw the message. In VS 2019, the message is shown in the Output window, but doesn't show the line.
 
In Dynamics AX 2012, I could click on the info message window to show the code line since it was the same app.
 
Is there any workaround? Cause i think this is really a stepback, even more when you have to debug code that is possible not yours.
 
Thanks,
Eisenberk.
  • Eisenberk Profile Picture
    Eisenberk 87 on at
    Debug Info message
    Hi @Martin Dráb,
     
    I hadn't thought of debugging the system info class. I see that It is also an option for debugging some exceptions.
     
    Thanks!,
    Eisenberk.
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,188 Most Valuable Professional on at
    Debug Info message
    I think you're looking at the Infolog window in VS, which indeed contains just the messages. And the call stack isn't added to infolog.
     
    The usual workaround is putting a breakpoint to Info.add() method, which is called when a message is being added to infolog.
     
    If you're actually interested in exceptions and not mere infolog messages, you have quite a few more options.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans