Debugging production JavaScript
NickName:w0051977 Ask DateTime:2014-09-24T03:38:14

Debugging production JavaScript

Please see the code below:

function TestAjax
{
   //AJAX asynchronous call 1
   //AJAX asynchronous call 2
   //AJAX asynchronous call 3
   //AJAX asynchronous call n
}

There are n AJAX calls to the server (up to about 50). On the production server some of the AJAX calls are returning errors: "internal server error". My research tells me that it is a server side error. The website runs perfectly on my development PC and on the test server. The AJAX calls are generated using JQuery and the server side code is: ASP.NET (VB.NET).

What is the best way of debugging on the production server? Is it just a matter of attaching Visual Studio to the W3WP process?

Copyright Notice:Content Author:「w0051977」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/26003365/debugging-production-javascript

More about “Debugging production JavaScript” related questions

how to disable Javascript debugging in production

I want to disable debugging of my javascript code in production. Is there any way i can do it by injecting any script in my code, so that any one cannot debugger the code in there browsers?

Show Detail

Debugging Uglified javascript in production environment

I'm new to AngularJS and Grunt. I have two grunt tasks setup in GruntFile.js for dev and production. For production I'm uglifying & combine many js files into one. I need some guidance/tips on...

Show Detail

Debugging production JavaScript

Please see the code below: function TestAjax { //AJAX asynchronous call 1 //AJAX asynchronous call 2 //AJAX asynchronous call 3 //AJAX asynchronous call n } There are n AJAX calls to ...

Show Detail

Debugging and Deploying Javascript: localhost vs production

I'm developing now a Chrome browser extension using Javascript. While developing on my machine, I use localhost for debugging. To be more specific, I have a symlink on my WWW local directory which

Show Detail

Is it possible to have different javascript files for debugging and production in web application?

I'd like to have different versions of .js javascript files in my ASP.NET WebForms application (VS 2008): the full-blown version, which comments and so on the minified version, for production Is ...

Show Detail

git workflow for deployment of code to production, when there is a need to change debugging related code in production?

We use git with the git flow branching model for our project. In our codebase there is some debugging related code which we turn on by default in non-production code (debugging output / debugging f...

Show Detail

Debugging production uglified javascript

I am trying to create a javascript error reporting system. The aim of the system is to collect info when an exception occurs and notify our servers. The problem is that in production the code is ug...

Show Detail

Security issuses and risks concerning debugging production environment

I am doing some research about security vulnerability and risks concerning debugging production environments. I would like to get your opinions and about possible risks concerning such environments...

Show Detail

.NET Production Debugging

I've had a Windows app in production for a while now, and have it set up to send us error reports when it throws exceptions. Most of these are fairly descriptive and help me find the problem very q...

Show Detail

switching between debugging and production mode

As a fast way of debugging app while developing is writing a statement like: print($data) is there is a way to stop printing when switching to production mode so it will not affect the performanc...

Show Detail