(Should appear in Google Play in an hour or so)
The script for testing is
<script>
console.clear()
console.debug('Debug message')
console.log('Log test');
console.warn('Warn test');
console.error('Error test');
console.time('Time');
for(let i=0;i<5;i++)
console.count('Count test');
console.assert(2===3,"2===3");
console.timeEnd('Time');
console.info('Webkit console methods: ', Object.getOwnPropertyNames(console));
console.log(1,2,3);
ENCON.custom("#ffbb0cd0", "Custom color");
console.profile();
</script>
Waiting for your improvement suggestions.
The modified script here - https://pastebin.com/y4qFJq5k
To turn off the console for a file (e.g. when done debugging), use Yaml
---
console:off
...
If you have further comments before the release, I'd be happy to see your participation. ;)
when you executed programs, you used alert(something); to see the intermediary results in your program.
Normally, people use the console command.
The commands console.log() console.debug() console.info() console.warn() console.error()
all of them do the same thing. The post a message in the console screen, but using different colors.
My name is <span id="name"></span>
<script>$(function(){
// This command clears the console
console.clear();
// This command posts a green message to console
console.info("Starting the program");
// This command starts counting time with the timer called "timer"
console.time("timer");
console.info("Timer has started");
var name = 'Eugene';
console.log('The variable name = ', name);
name += ' Kartoyev';
// log posts a white message
console.log('Now the variable name = ', name);
// debug posts a blue message
console.debug('Now I\'m inserting the name to the Html');
$('#name').text('Eugene');
console.info('The program has finished');
console.info("The total execution of the program took:");
// This finishes counting the time
// and tells how much time it took
// to do the above operations
console.timeEnd("timer");
});</script>
DON'T COPY THIS TEXT FROM EMAIL. Email inserts invisible characters. Copy the text from the group or from here - https://pastebin.com/0Gmcia0W
Before you wrote alert('My message'), now use console.log('My message')
and it will not block the main screen.
Console will also be used to report errors, for example, if you try to decrypt a file that was not encrypted, it will tell the error to console instead of the popup message, so a person can copy the error and post it here, if they want to ask a question about the error.
The same thing about compatibility processor, if you write a wrong regex there, it will tell you about the error to the console.
Can you re-copy/paste your script from here https://pastebin.com/87e9Kb0k ?
It seems it has some hidden character.
It stopped popping after I re-wrote it by hand.
Though the script as posted here in the forum doesn't have the invisible characters...
You may have a different problem
Can you tell me what error it says in your console?