MCPcopy Create free account
hub / github.com/christophhart/HISE / toggleBreakpoint

Method toggleBreakpoint

hi_scripting/scripting/ScriptProcessor.cpp:885–901  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

883{ return scriptEngine; }
884
885void JavascriptProcessor::toggleBreakpoint(const Identifier& snippetId, int lineNumber, int charNumber)
886{
887 HiseJavascriptEngine::Breakpoint bp(snippetId, "", lineNumber, charNumber, charNumber, breakpoints.size());
888
889 int index = breakpoints.indexOf(bp);
890
891 if (index != -1)
892 {
893 breakpoints.remove(index);
894 }
895 else
896 {
897 breakpoints.add(bp);
898 }
899
900 compileScript();
901}
902
903HiseJavascriptEngine::Breakpoint JavascriptProcessor::getBreakpointForLine(const Identifier& id, int lineIndex)
904{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.45
indexOfMethod · 0.45
removeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected