Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
6009 Näkymät

I'm trying to show by server console the print of a variable or by the chrome developer mode, but I do not know how to do it.
please your support.

Avatar
Hylkää
Paras vastaus

You cannot show any log / print statements of the py file to web browser console.

Avatar
Hylkää

Technically you could by writing a JS function that triggers the PY function and passing the output from the PY function to the JS function, which is then rendered in the console with a console.log message. But yeah, that is total overengineering ;)

Yes, that is the way but yes it needs lots of work, efforts :)

Tekijä

And then how do you feel, if you want to know the value of a variable, by some calculation error, etc.?

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
elok. 25
2620
1
heinäk. 25
1016
1
elok. 25
1151
0
toukok. 25
1474
2
huhtik. 25
3621