This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build web-main-8558-on-20120917) VM: Java HotSpot(TM) Client VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10 OS: Linux User Comments: vriha: Debugging Jasmine JavaScript tests. What caused it: - open SampleApp/tests/unit/jasmine.js and add breakpoint to line 12 (with var calc) - run tests in Chrome with debugger - once it paused on the breakpoint, keep pressing Step Into The exception was thrown when code execution stops in sampleApp/tests/lib/jasmine/jasmine.js:118 Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1911) at org.netbeans.modules.javascript2.editor.index.IndexedElement.getAssignments(IndexedElement.java:180) at org.netbeans.modules.javascript2.editor.index.IndexedElement.decodeProperty(IndexedElement.java:277) at org.netbeans.modules.javascript2.editor.index.IndexedElement.createProperties(IndexedElement.java:165) at org.netbeans.modules.javascript2.editor.index.JsIndex.getProperties(JsIndex.java:133) at org.netbeans.modules.javascript2.editor.model.impl.ModelUtils.findPrototypeChain(ModelUtils.java:569)
Created attachment 124487 [details] stacktrace
Vlado, do you have reproducible case?
Anyway should be fixed in the web-main. http://hg.netbeans.org/web-main/rev/8f8f27efcfef
Only information I have are the steps above but unfortunately I can't reproduce it with them...