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 :
Microsoft Dynamics CRM (Archived)

How to debug Javascript (Custom) in CRM 2015 using Browser

(0) ShareShare
ReportReport
Posted on by

Hi there,

I have tried Debugging using IE 11 Developer Tools as well as Chrome. I can see my Javascript Code only under Dynamic Scripts and when I open it and add a breakpoint it is never reached. I have googled a lot but only found Infos related to CRM 2011 which are not working for CRM 2015 and new browser versions.

I have also tried adding following statment in the initialize code: Xrm.Utility.alertDialog("Inside alert statement"); 

it just Displays message box but donot break at that Point.

could anybody please tell me how to debug Javascript custom  in CRM 2015 using Browser? Thanks in advance!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    Simplest way will be to add a debugger in the code itself. Press F12 and run the page.

    Put this inside the function where you want to debug.

    debugger;

  • Verified answer
    Nithya Gopinath Profile Picture
    17,078 on at
  • Verified answer
    Community Member Profile Picture
    on at
    
    

    Hi,

    Have you tried using "debugger"? Hit F12 before you trigger your code and then trigger your function, it will stop on debugger so that you can debug your code.

    function TestFunction() {
        debugger;
       yourjavascriptcode
    }


    Hope it helps,

    Ezgi Haglund
    Please verify if it solves your problem

  • Community Member Profile Picture
    on at

    to the Point Explanation. Thanks everybody!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans