I get an error, but not constantly, and in some specific cases. I want to catch this case. fireBug gives an error, but the js code also stops executing. I want the code to stop when an error occurs and I can go step by step to search for an error
- Well, so firebug writes what the error is and in what place it was called - DemoS
|
2 answers
FireBug has the ability to put BreakPoint anywhere within the javascript code. When executed in the selected location, the code will stop and from there you can already step through the code, and even view the values of the variables at each stage.
- The fact is that an error occurs, and the code in that place does not stop. If I put a stop in this line always, it will be a long time, because the obishka appears 1 time out of 100 - Radik Kamalov
|
And what about the try - catch option does not suit you? If an error is caught, output the necessary values to the console, stop the script and see the details.
- thank! completely forgot about the trub catch. I will test. - Radik Kamalov
|