Debugging - Forum

Forum Navigation
You need to log in to create posts and topics.

Debugging

Hi.. My PWA suddenly wont even start and the debugging window is of no help to me as it displays the following.

Expected ')' (main.js?v=12, 533)
[$injector:modulerr] http://errors.angularjs.org/1.8.0/$injector/modulerr?p0=NeoApp&p1=Error: [$injector:nomod] http://errors.angularjs.org/1.8.0/$injector/nomod?p0=NeoApp
at Anonymous function (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:26:497)
at b (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:26:6)
at Anonymous function (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:26:270)
at Anonymous function (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:43:199)
at r (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:8:74)
at g (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:43:49)
at fb (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:47:147)
at c (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:22:55)
at Wc (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:22:363)
at Ee (file:///C:/Users/jason/Documents/VisualNeoWeb/Libraries/js/angular.min.js:21:45) (jquery.min.js, 2)

I have re-traced my steps and cannot see any code errors. Is there away I can determine what the likely area of problem is from the above debug report?

I have had this a few times where a code error just stops the start up of the file and nothing to help flag the error.

Any help here appreciated.

I have figured it out but really the de-bugger did not help. Am I missing something where if you had a code error it would show up in debugger instead of a JS error?

 

@jason-roberts I recommend to use the web browser console (under FireFox, Chome or Edge) instead of the built-in debugger.
The ConsoleLog command will allow you to send messages to the console at different points within your code to see what's happening. Also note the "Preview Javascript" option in the code editor context menu. Sometimes it helps too.

Best regards.

Thank you.