Debugging a Framework: Work Environment?
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 23
- Joined: Mon May 19, 2014 11:38 am
Debugging a Framework: Work Environment?
Colleagues and Experts,
How do you go about debugging an extensive framework?
Background: I have a framework written for a rather complicated NLM-based project. The FW has to be maintained and extended on a regular basis. It also has bugs due to human condition.
Debugging a certain snippet of code used for, say, inserting an XML fragment (throw in a combobox with an xpath_eval function to read in values from an included list and similar niceties) means:
- Testing it in the editor
- opening Options > Preferences > Doc Association > choosing the framework > clicking your way into the action and the fragment
- editing the snippet
- clicking a bunch of OKs
- Testing again
Naturally, if you are stuck with an annoying entity and have to play with commas and brackets repetitiously, this procedure is exasperating. Also, while you are in the dialog with the snippet, you cannot access the XML input to look up anything (unless you also have it open in another editor, which is precarious).
The framework file can itself be opened in another window and edited without the dialogs, but that adds another level of complications and does not sit well with oXygen which, under certain conditions, does not register/apply changes. This is understandable.
So, how do you cope? Am I missing something obvious?
Thank you in advance,
Alexey
How do you go about debugging an extensive framework?
Background: I have a framework written for a rather complicated NLM-based project. The FW has to be maintained and extended on a regular basis. It also has bugs due to human condition.
Debugging a certain snippet of code used for, say, inserting an XML fragment (throw in a combobox with an xpath_eval function to read in values from an included list and similar niceties) means:
- Testing it in the editor
- opening Options > Preferences > Doc Association > choosing the framework > clicking your way into the action and the fragment
- editing the snippet
- clicking a bunch of OKs
- Testing again
Naturally, if you are stuck with an annoying entity and have to play with commas and brackets repetitiously, this procedure is exasperating. Also, while you are in the dialog with the snippet, you cannot access the XML input to look up anything (unless you also have it open in another editor, which is precarious).
The framework file can itself be opened in another window and edited without the dialogs, but that adds another level of complications and does not sit well with oXygen which, under certain conditions, does not register/apply changes. This is understandable.
So, how do you cope? Am I missing something obvious?
Thank you in advance,
Alexey
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Debugging a Framework: Work Environment?
Hi Alexey,
In Oxygen 23.0 we added a new feature named a framework extension script. It's a special format of XML file in which you can specify details about the framework configuration without the need to use Oxygen's dialogs.
https://www.oxygenxml.com/doc/versions/ ... cript.html
My colleague Alex has a webinar about this:
https://www.oxygenxml.com/events/2021/w ... cript.html
For each action you can define its details in a special XML file type which is loaded by the extension script.
Also each time the framework extension script is modified and saved in Oxygen the framework configuration should be automatically reloaded by Oxygen so that you can test it more easily.
Regards,
Radu
In Oxygen 23.0 we added a new feature named a framework extension script. It's a special format of XML file in which you can specify details about the framework configuration without the need to use Oxygen's dialogs.
https://www.oxygenxml.com/doc/versions/ ... cript.html
My colleague Alex has a webinar about this:
https://www.oxygenxml.com/events/2021/w ... cript.html
For each action you can define its details in a special XML file type which is loaded by the extension script.
Also each time the framework extension script is modified and saved in Oxygen the framework configuration should be automatically reloaded by Oxygen so that you can test it more easily.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service