Can I Re-register and Debug codebehind registered javascript

I am working on an inherited application so the rational for what I am about to present is not always clear to even me...

In this app, in the page_load, the following code exists...
if (!ClientScript.IsClientScriptBlockRegistered("jsULMRightsObjects"))
{            
            ClientScript.RegisterClientScriptInclude("jsULMRightsObjects", "RightsMgmt.js");            
}

My first question is, while the app is running through my dev server (locally), if I change the code in RightsMgmt.js and "Refresh" the page in the browser.  Will my updated code be re-registered?  The code does NOT sit within an IsPostback check.

My second question is can I debug this code in VS?  I have put break points in the RightsMgmt.js file but they not being hit due to "no symbols loaded".  

In the past I have been able to debug external js files but in those cases I've used a link tag in the aspx page.

Thanks in advance for any help...

LVL 1
BruceAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BruceAuthor Commented:
Update:  I have tested in another application that I can indeed set a break point, and have it hit, in a RegisterClientScriptInclude javascript file.

I have checked my IE for Disable Script Debugging and it is not set on.  

I have also looked at the "Attach to Process" dialog and the instance of IE that I am wanting to debug is already "attached".

Hope this helps refine my questions.
0
BruceAuthor Commented:
Update: I think I have it.  My javascript was not "well-formed" shall we say.  I corrected a function definition and now I can set and htit a breakpoint in the file.

Is this possible?  Or did I change something else unknowingly and now it works?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.