Debugging a Framework: Work Environment?
Posted: Fri May 13, 2022 12:41 pm
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