Debug a plugin written in JS
Posted: Mon Jul 10, 2023 3:47 pm
Hello everyone!
I have a plugin that was developed several years ago in javascript.
It contains a wsAccess.js, a toolbar.js and a plugin.xml file
I don't really get what is the purpose of the wsAccess.js knowing that most of the functions in it are similar to the toolbar.js.
The plugin.xml references both so I guess its author had a clear reason to do that.
However, now that I want to update it, I don't have any way to trace the errors that could occur. I update my js files and after restart my app. Sometimes, the effects are directly visible, sometimes they are not and the plugin doesn't fuction anymore.
I would like to trace and see more what happens in the background but the tutorials. have found are related to java and debugging in Eclipse and IntelliJ, they don't apply to plugins using javascript like those proposed in this folder.
https://github.com/oxygenxml/wsaccess-j ... ree/master
Would you have any tip, video or link to share so that I could better understand how my changes in the code apply or not in the plugin?
I have a plugin that was developed several years ago in javascript.
It contains a wsAccess.js, a toolbar.js and a plugin.xml file
I don't really get what is the purpose of the wsAccess.js knowing that most of the functions in it are similar to the toolbar.js.
The plugin.xml references both so I guess its author had a clear reason to do that.
However, now that I want to update it, I don't have any way to trace the errors that could occur. I update my js files and after restart my app. Sometimes, the effects are directly visible, sometimes they are not and the plugin doesn't fuction anymore.
I would like to trace and see more what happens in the background but the tutorials. have found are related to java and debugging in Eclipse and IntelliJ, they don't apply to plugins using javascript like those proposed in this folder.
https://github.com/oxygenxml/wsaccess-j ... ree/master
Would you have any tip, video or link to share so that I could better understand how my changes in the code apply or not in the plugin?