This is a migrated thread and some comments may be shown as answers.

[Solved] Javascript gets no compiler errors

1 Answer 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 27 Jun 2013, 11:29 PM
Hi,

This is not a telerik question but maybe you have a quick answer.  I want to write a windows store app that uses html5, javascript and Telerik controls.  I am in the learning phase and can't even get the javascript blank app to report errors when compiling.  No matter how badly I mess up the code I get no errors reported. I am using visual studio 2012 express for windows 8.  I have not even introduced Telerik controls at this point so its has nothing to do with Telerik.  Any thoughts on this.  Any insight would be appreciated but I realize this is not Teleriks problem. and you have no obligation to respond.

Thanks
Rich

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 28 Jun 2013, 07:46 AM
Hello Rich,

Since JavaScript is an interpreted program language, applications built with it are not explicitly compiled. The application source code is executed directly, statement by statement. That is why you do not get compilation errors but rather see them at run time, when the logic executes.

Therefore, to be able to debug syntax (and all other) errors, you need to run your application in debug mode either by pressing F5 only, or by clicking the Run button (which, based on your choice is named, Local Machine, Remote Machine or Simulator). This way you will see error messages when the application encounters a syntax or other error, similarly to web programming.

I hope this information helps.

Regards,
Tsvetina
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
General Discussions
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or