When I try to call my constructor function, it stops at the function definition in the debugger and never reaches the actual function body. Is there a common reason for this issue that I might be missing? Here is an example of the code:
myconstructor.js
function MyConstructor(optionalParam) { //this breakpoint gets hit
var newobj = {}; //breakpoint never hit
//code to check for null parameter
//other code
};
main.js
var myConstructor = new MyConstructor();
I feel like I must be overlooking something obvious, but I can't seem to figure out what it is. Both Firefox/Firebug and Visual Studio do not show any errors or warnings.
Any help would be greatly appreciated!