Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Debugging / March 2007

Tip: Looking for answers? Try searching our database.

VS 2003 locks .js files in debug mode

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sluderisinthehouse@gmail.com - 12 Mar 2007 19:03 GMT
I have a C# project with a large amount of Javascript.  The scripts
are include in the .aspx like so:

<SCRIPT language="javascript" src="myScripts.js"></SCRIPT>

When I run in debug mode Visual Studio makes the myScripts.js file
read-only and I am unable to edit on the fly.  I am able to open the
file in notepad and make changes, which VS picks up after you refresh
the running page.  Does a setting exist (maybe in the registry?) to
not lock the .js files while runnning in debug mode?  I can edit the
ASPX files on the fly so I hope the same can be done with .js files
in
the VS envoronment.

thanks,
Steve
Bryan Phillips - 14 Mar 2007 03:08 GMT
The files technically are not locked.  You could edit them using
notepad, but you can't edit the file in the same IDE session that is
debugging the file.

To get around this, I invoke the debugger and use another instance of
the IDE to handle the user breakpoint while the original IDE is used to
make changes.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> I have a C# project with a large amount of Javascript.  The scripts
> are include in the .aspx like so:
[quoted text clipped - 12 lines]
> thanks,
> Steve
SteveS - 14 Mar 2007 20:24 GMT
On Mar 13, 9:08 pm, "Bryan Phillips"
<bphill...@nospam.spamcop.net.spammenot> wrote:
> The files technically are not locked.  You could edit them using
> notepad, but you can't edit the file in the same IDE session that is
[quoted text clipped - 30 lines]
>
> - Show quoted text -

Bryan,

Thanks for the info.  I have been using a notepad editor then
refreshing the page but I was hoping there might be a better way.

Steve

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.