Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

Javascript errors do not go to java_console()

$
0
0

I have Javascript code embedded in a XUI dialog and I would like to see errors when something goes wrong.  I think that the errors should go to the java console, but nothing ever shows up.  Do I need to do something to get the errors to appear?

 

For example I might have code like:

 

do_something(foo);

 

But maybe 'foo' isn't really the right variable name, it should be 'bar'.  when that line of code executes, nothing happens.  Program execution stops, but no indication of the error shows up in the console.

 

I would really love to see an error like "foo is not defined" instead of having to just look through the code an imagine what might be going wrong.


Viewing all articles
Browse latest Browse all 1645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>