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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Break point is not hitting on Custom java script in all browsers for my Production CRM 2016?

(0) ShareShare
ReportReport
Posted on by

Hi,

i am facing weird issue that Break point is not hitting on Custom java script in all browsers for my Production CRM 2016?

Please find the fig. it shows the exact error;

0028.error1.png

Black arrow shows script is hitting break points, but green arrow shows script is actual script and it should be hit break points;

Please help.

Note: This is happening in all browsers.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Try to include debugger; directive in place where you want to start your troubleshooting.

  • Habeeb-Dynamics CRM Application Developer Profile Picture
    on at

    i have added debugger but still its not hitting break point in the actual script.

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    I'm not sure regarding all browsers but it definitely works in Chrome. Save and publish your js file, open debugging console (F10) and click CTRL-F5 to reload form you work with.

  • Suggested answer
    Saroj Das Profile Picture
    3,355 on at

    Try to lunch CRM in IE. After adding Debugger to your script, Uncheck these 2 options in Internet Options --> Advanced tab. And try to debug

    Debuger.JPG

    Thanks,

    Saroj

  • Verified answer
    JohnAnonymous Profile Picture
    5,241 on at

    Are you sure your script is executed? The debugger directive has never failed me.

    Just to be sure, you can add a console.log('info') as the first line of your function, to be sure it's being called.

  • Verified answer
    Tushar2016CRM Profile Picture
    1,130 on at

    HI ,

    Try to add the debugger on one of ur Onload scripts and check if its getting triggered properly .

    There might be a condition where the required script must not be getting called at all .

    Thanks!

  • Habeeb-Dynamics CRM Application Developer Profile Picture
    on at

    i have added debugger in script again its not hitting break points.In chrome also i have checked same issue raised. Plz help.

  • JohnAnonymous Profile Picture
    5,241 on at

    Are you sure your function is executed?

    Where is it called from. From a field, form onload event or from a webresource? Can you post part of the script and a screenshot from where you load the script and call the function?

  • Habeeb-Dynamics CRM Application Developer Profile Picture
    on at

    These all are called from html web resources, actually i have created a button in Html web resource, this button calls an external js function.I amazed that the break point is not hitting to the actual script.But it is hitting same js but this js is old one.This is the issue.I have put debugger and added console.log to check the message but still it is hitting different script as shown in above pic

  • Verified answer
    Tushar2016CRM Profile Picture
    1,130 on at

    HI ,

    Just republish your web resource changes .

    It might not have been published earlier .

    Thanks!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans