Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

How to debug on event

(0) ShareShare
ReportReport
Posted on by 203

Hi friends,

I m real new on D365 and i need to debug some behaviour.

I m working on Security Roles Matrix.

I'm debugging some issues on some task from a former DEV.

I got a button which have to validate some security level and insert it on selected matrix and instead of that its delete the selected matrix on form and delete also this matrix in table.

I don't understand why and where it comes.

So i need to debug it to fix that, someone said to me that i need to debug on delete event on this table but i dont know how to do it exactly ?

Could someone teach how to do it and explain please ?

Regards.

  • Martin Dráb Profile Picture
    Martin Dráb 230,414 Most Valuable Professional on at
    RE: How to debug on event

    Please consider verifying the answer. You can do that by using Did this answer your question? > Yes on the reply that answered the question.

  • Awaxx Profile Picture
    Awaxx 203 on at
    RE: How to debug on event

    Thank you goshoom 

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,414 Most Valuable Professional on at
    RE: How to debug on event

    First of all, check if the table in question doesn't already have delete() method. If so, you can put a breakpoint there.

    Otherwise expand the Events node of the table, right-click on the Delete event and choose Copy Event Handler (or something like that). It'll generate an event handler method definition and put it into the clipboard.

    Then create a project, add a class and paste the method there. Now you have an event handler method and you can put a breakpoint there. Build the project, attach debugger to your web server (typically iisexpress) and perform the stepts that you want to debug.

  • Awaxx Profile Picture
    Awaxx 203 on at
    RE: How to debug on event

    Is there someone for some help or explaination please ?

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,414 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans