GPWiki.org
GPWiki.org
It is currently Sun May 19, 2013 9:00 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Mar 04, 2012 8:11 pm 
Ankle Nibbler
User avatar

Joined: Tue Dec 20, 2005 12:28 am
Posts: 140
Debugging a Web Site using Visual Studio

I am studying a web site that caught my eye by making a test site privately. Since the original html and CSS and JavaScript code is on a Windows Server and since I am making a test version on a Linux server, there are issues with missing links because of case sensitivity.

Anyway, this is he point. When I load the test website, I get an error message that some file cannot be found. Because of the size and all the connections and files, it is difficult to track down what file is missing or misnamed file. Now, I think there is a way to easily find out exactly what file is not found. I think there is a way to do this using Visual Studio test classes and projects. Am I right?


Top
 Profile  
 
PostPosted: Sun Mar 04, 2012 8:40 pm 
Bytewise

Joined: Sun Oct 16, 2011 3:09 pm
Posts: 276
Location: Here (where else?)
Wouldn't the Linux server have a log that lists errors about the missing files?

_________________
My project: Messing about in FreeRCT, dev blog, and IRC #freerct at oftc.net


Top
 Profile  
 
PostPosted: Wed May 23, 2012 4:24 pm 
Rookie

Joined: Wed May 23, 2012 4:03 pm
Posts: 1
Basically, you're looking for files that are linked to in the code but can't be found by the web browser!?

I don't know much about Visual Studio but I think you're probably looking for a script that will process your sources and find any links to files and save that list in a file somewhere.

Then, you write another script that processes that file and looks for the files and complain whenever it can't find one so you know exactly which ones you need to fix.

If you know some python, you could do that easily with some regex, urlib and for loops.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group