Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6010 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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 :)

Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
2620
1
thg 7 25
1016
1
thg 8 25
1151
0
thg 5 25
1474
2
thg 4 25
3621