-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split --debug
mode into several flags
#332
Comments
For 1 we need more meaningful names. I guess |
Currently, it's highly implementation-dependent:
|
|
Python support was added in kaitai-io/kaitai_struct_compiler@18cecf4 in 2018-07. I'll update the overall description of data structures above. |
The Closing this one as done. |
I guess the time had come to think of splitting
--debug
mode, which was originally designed solely for visualization tools integration, into several meaningful compilation options / flags:my_obj._debug['attr_id']
1.1. May be additional submode — store positions of individual elements in the array
_read()
callseq
elements as array —MyType::SEQ_FIELDS
May be also we could think of:
doc
/doc-ref
elements as strings for visualization tools to annotate fieldstitle
,license
, etc) as strings-webide-representation
, etc) as is into relevant parts of the classThe main concern is that (1) is super slow and actually rarely needed outside of visualization / debugging purposes. (2) is super useful per se for parsing "bad" data and being able to cope with half-filled classes. (3) is not a big deal, but it adds extra pollution and, again, is pretty much useless outside of scope of vis tools.
From top of my head, I'd go with
--debug-pos
for (1),--no-ctor-read
for (2),--debug-seq
for (3).The text was updated successfully, but these errors were encountered: