Home > JScript > Machine hangs up when you put a ‘debugger;’ in jScript “OnChange” event

Machine hangs up when you put a ‘debugger;’ in jScript “OnChange” event

Hi,

While debugging a Jscript file ,Sometimes you may come across the situation where your machine gets hanged and it won’t even allow you start ‘Task Manager’ to kill the process.

 It happens, if you have the similar scenario

  • If you put a ‘debugger;’ command in ‘onChange’ event of Dropdown
  • If this is the only ‘debugger;’ command you put on the entire Jscript file
  • Enable script debugging in browser
  • Raise the ‘onChange’ event by changing dropdown value in the CRM Form

Workaround:-

  • Always make sure to have one more ‘debugger;’ that called before hitting
    the ‘debugger;’ in ‘onChange’ event
  • Preferably always put a ‘debugger;’ in page ‘onLoad’ event when you
    want to debug the ‘onChange;’ event

Hope it helps 🙂

Advertisement
  1. April 1, 2015 at 9:40 PM

    amazing post dude

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: