Is it possible to prevent the Javascript debugger from stepping into certain files?
I specifically don't want it to break when an exception is thrown in the Jquery JavaScript file:
The same goes for other 3rd party minified files...every time there is a run time error it shows the notification and opens up the file. Breaking execution and opening the minified file doesn't help me find the cause of the error.
You can go to Tools > Options > Debugging > General > and then in the right part almost like in the middle of the scroll you'll find the option to enable or disable JavaScript debugging.
You can forcibly break into an application using the Terminate All command from the Debug menu. Select Stop debugging from Debug menu to end a debugging session. You also can stop debugging from the processes window.
In Solution Explorer, right-click the project and choose Properties. In the side pane, choose Build (or Compile in Visual Basic). In the Configuration list at the top, choose Debug or Release. Select the Advanced button (or the Advanced Compile Options button in Visual Basic).
Something is causing the error, and you probably shouldn't just ignore it.
I'd recommend switching to the debug (unminified) script and figured out what exactly the error is.
Once you have the error, if you can't figure it out, post it on stackoverflow and I'm sure someone will be able to help you out more.
Try running your custom scripts through jslint to see if there are any obvious problems. http://www.jslint.com
Edit: Based on your error, I'd say you are trying to do something with a null value, make sure you check for nulls in your code when it's a possibility that something could be null. You can assign default values like this:
variable = (typeof variable === undefined) ? defaultValueIfNull : variable;
or use the same check with if statements
if (typeof variable !== undefined)
{
//do stuff
}
And because it's jquery and it says object expected, I'd say you may have a selector that doesn't return any matches, but it could be other things, that's just a guess.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With