Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

app.consolelog

Tony_T_
Beginner
496 Views

I can see my consolelog entries from init.apps.js. Please what is the correct way to modify index_user_scripts.js so I may write to consolelog.

0 Kudos
2 Replies
Ad
New Contributor III
496 Views

use

console.log("hello world");

or sometimes easier/quicker

alert("hello world");

 

0 Kudos
Dale_S_Intel
Employee
496 Views

I think the way it's supposed to work is to set app.LOG to 'true' if you want to see logs from app.consoleLog(), and set it to 'false' if you don't. You can change this anywhere in your code to go back and forth between the two choices.  To be safest, you might want to refer to it as window.app.LOG, and then log things with window.app.consoleLog().

app.consoleLog should act just like console.log, except that it will be a no-op if app.LOG is not 'true'.

Does that help?

 

Dale

 

0 Kudos
Reply