How to move code in the renderer process


#1

I am working on an electron project with visual studio code which I haven’t created and I am a newbie in electron. I wanted to debug my code vscode and it worked generally, But there are parts which vscode debugger does not halt at the breakpoints. For example in a delegate like this:
graphContainer
.delegate(
‘g.cluster’,
‘click’,
function() {
editorController.unhighlight();
editorController.highlightNodeInCode(nodeData[this.id]);
});
I opened a thread in vscode asking about that. They told me to move the code in the renderer process. The code is in a file called visualizer.js. Here is the repository of the code in github: MbProg/BT. I thought that visualizer.js is in the renderer process as it is the javascript file of the visualizer.html. But they say that it is not the case. So my question is how can I move the visualizer.js file to the renderer process?