Translator debugging questions
I just fumbled around a bit with updating the PROLA translator, and a couple of questions came up:
- Is there any way to set a breakpoint in a translator file in Venkman?
I know this might be more a question about Venkman, but their FAQ didn't enlighten me, and somebody here probably knows. It also seems to me that some of the other Zotero files are hard to get at from Venkman, how do I do? (I guess they're in short-lived hidden browsers or stuff?) Sorry about the beginners question, but this is really my introduction to js/xul.
- How do I know which version of a translator is in use, and is there an easy way refresh the database of translator IDs/targets?
Sometimes Zotero seemed to keep an older version of the translator, and using Zotero.debug() output is a bit cumbersome. It's especially annoying when I'm debugging the target regex, I restart firefox endlessly, and even set the regex to weird things just to see if I'm pulling in the modifications.
If you can, I think these answers might also go into
http://www.zotero.org/support/dev/translators_reference_guide
http://www.zotero.org/support/dev/translator_tips_tricks
Perhaps also into
http://www.zotero.org/support/troubleshooting_translator_issues
I would also like to add the last two links to the translators_reference_guide page, but apparently I don't have access to edit the wiki, even when logged in. Is this normal? Who gets wiki access?
- Is there any way to set a breakpoint in a translator file in Venkman?
I know this might be more a question about Venkman, but their FAQ didn't enlighten me, and somebody here probably knows. It also seems to me that some of the other Zotero files are hard to get at from Venkman, how do I do? (I guess they're in short-lived hidden browsers or stuff?) Sorry about the beginners question, but this is really my introduction to js/xul.
- How do I know which version of a translator is in use, and is there an easy way refresh the database of translator IDs/targets?
Sometimes Zotero seemed to keep an older version of the translator, and using Zotero.debug() output is a bit cumbersome. It's especially annoying when I'm debugging the target regex, I restart firefox endlessly, and even set the regex to weird things just to see if I'm pulling in the modifications.
If you can, I think these answers might also go into
http://www.zotero.org/support/dev/translators_reference_guide
http://www.zotero.org/support/dev/translator_tips_tricks
Perhaps also into
http://www.zotero.org/support/troubleshooting_translator_issues
I would also like to add the last two links to the translators_reference_guide page, but apparently I don't have access to edit the wiki, even when logged in. Is this normal? Who gets wiki access?
-
dstillmanBest to post this to zotero-dev.