Is there way to trace web2py files? For example, URL function is
interesting for me and I found its description in html.py then I want to
know how it work step by step when it's called from my app...
Also I created breakpoint in my controller and push the button like on
picture, then I had error:
Ticket ID
127.0.0.1.2019-08-19.17-06-06.a8a926bd-ab4a-4133-ae06-b94c601fb30a
<class 'UnicodeDecodeError'> 'charmap' codec can't decode byte 0x98 in
position 8077: character maps to <undefined>Версия
web2py™ Version 2.18.5-stable+timestamp.2019.04.08.04.22.03
Python Python 3.7.3: C:\Python\python.exe (prefix: C:\Python)Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
Traceback (most recent call last):
File "C:\Users\kkomkov.TIMACAD\Desktop\web2py\gluon\restricted.py", line 219,
in restricted
exec(ccode, environment)
File
"C:\Users\kkomkov.TIMACAD\Desktop\web2py\applications\admin\views\debug/breakpoints.html",
line 130, in <module>
});
File "C:\Python\lib\encodings\cp1251.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 8077:
character maps to <undefined>
Error snapshot [image: help]
<http://127.0.0.1:8000/admin/default/ticket/admin/127.0.0.1.2019-08-19.17-06-06.a8a926bd-ab4a-4133-ae06-b94c601fb30a#>
UnicodeDecodeError('charmap' codec can't decode byte 0x98 in position 8077:
character maps to <undefined>)
inspect attributes
Frames
-
*File C:\Users\kkomkov.TIMACAD\Desktop\web2py\gluon\restricted.py in
restricted at line 219* код аргументы переменные
-
*File
C:\Users\kkomkov.TIMACAD\Desktop\web2py\applications\admin\views\debug\breakpoints.html
in <module> at line 130* код аргументы переменные
-
*File C:\Python\lib\encodings\cp1251.py in decode at line 23* код
аргументы переменные
Function argument list
(self=<encodings.cp1251.IncrementalDecoder object>, input=b'# -*-
coding: utf-8 -*-\r\n# -----------------...r\n return
response.download(request, db)\r\n', final=True)
Code listing
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
def encode(self, input, final=False):
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
class StreamWriter(Codec,codecs.StreamWriter):
pass
Variables
global codecs <module 'codecs' from 'C:\\Python\\lib\\codecs.py'>
codecs.charmap_decode <built-in function charmap_decode>
input b'# -*- coding: utf-8 -*-\r\n# -----------------...r\n return
response.download(request, db)\r\n'
self <encodings.cp1251.IncrementalDecoder object>
self.errors 'strict'
global decoding_table
'\x00\x01\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f
!"#$%&\'()*+,-./...ПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя'
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/031639ac-3a48-438c-bbd8-b11fa256191e%40googlegroups.com.