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.

Bug 229173 - Javascript debugger does not show green highlight when debugging PhoneGap app on iPad
Summary: Javascript debugger does not show green highlight when debugging PhoneGap app...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-29 16:21 UTC by Jan Becicka
Modified: 2013-05-02 14:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2013-04-29 16:21:03 UTC
Probably not debugger issue. But I'd like to help with evaluation. I'm able to set  breakpoint into javascript file, but when I debug PhoneGap application on iPad, I don't see green line, when debugger stops on breakpoint.
See attached output from webkit protocol:

18:15:28:175 blocking send {"id":226,"method":"Debugger.setBreakpointByUrl","params":{"lineNumber":201,"columnNumber":0,"url":"file:\/\/\/var\/mobile\/Applications\/05056CEE-00F8-438F-A918-D8858D219479\/PhoneGapSample.app\/www\/js\/main.js"}}
18:15:28:184 response {"id":226,"result":{"locations":[{"lineNumber":201,"scriptId":"58833168","columnNumber":0}],"breakpointId":"file:\/\/\/var\/mobile\/Applications\/05056CEE-00F8-438F-A918-D8858D219479\/PhoneGapSample.app\/www\/js\/main.js:201:0"}}
18:15:32:666 event {"method":"DOM.attributeModified","params":{"nodeId":234,"name":"class","value":"ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-bottom"}}
18:15:32:668 event {"method":"DOM.attributeModified","params":{"nodeId":234,"name":"class","value":"ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-bottom ui-btn-hover-c"}}
18:15:32:669 event {"method":"DOM.attributeModified","params":{"nodeId":234,"name":"class","value":"ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-bottom ui-btn-hover-c ui-btn-down-c"}}
18:15:32:820 event {"method":"DOM.attributeModified","params":{"nodeId":234,"name":"class","value":"ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-bottom ui-btn-hover-c"}}
18:15:32:821 event {"method":"DOM.attributeModified","params":{"nodeId":234,"name":"class","value":"ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-bottom ui-btn-hover-c ui-btn-up-c"}}
18:15:32:822 event {"method":"DOM.attributeModified","params":{"nodeId":234,"name":"class","value":"ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-bottom ui-btn-hover-c ui-btn-up-c ui-btn-active"}}
18:15:32:823 event {"method":"DOM.attributeModified","params":{"nodeId":234,"name":"class","value":"ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-bottom ui-btn-up-c ui-btn-active"}}
18:15:32:876 event {"method":"DOM.characterDataModified","params":{"nodeId":10,"characterData":"About"}}
18:15:32:880 event {"method":"DOM.attributeModified","params":{"nodeId":19,"name":"class","value":"ui-page ui-body-c"}}
18:15:32:881 event {"method":"DOM.attributeModified","params":{"nodeId":40,"name":"class","value":"ui-page ui-body-c ui-page-active"}}
18:15:32:917 event {"method":"DOM.attributeModified","params":{"nodeId":81,"name":"class","value":"ui-footer ui-bar-b ui-footer-fixed fade ui-fixed-inline ui-fixed-overlay"}}
18:15:32:918 event {"method":"DOM.attributeModified","params":{"nodeId":81,"name":"class","value":"ui-footer ui-bar-b ui-footer-fixed fade ui-fixed-overlay"}}
18:15:32:987 event {"method":"DOM.attributeModified","params":{"nodeId":234,"name":"class","value":"ui-btn ui-btn-icon-right ui-li-has-arrow ui-li ui-corner-bottom ui-btn-up-c"}}
18:15:33:001 event {"method":"Debugger.paused","params":{"reason":"other","callFrames":[{"location":{"lineNumber":201,"scriptId":"58833168","columnNumber":0},"scopeChain":[{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":71}","className":"Window","type":"object"},"type":"local"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":72}","className":"Window","type":"object"},"type":"closure"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":73}","className":"Window","type":"object"},"type":"global"}],"functionName":"about","this":{"description":"MyApplication","objectId":"{\"injectedScriptId\":1,\"id\":74}","className":"Object","type":"object"},"callFrameId":"{\"ordinal\":0,\"injectedScriptId\":1}"},{"location":{"lineNumber":145,"scriptId":"58833168","columnNumber":0},"scopeChain":[{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":75}","className":"Window","type":"object"},"type":"local"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":76}","className":"Window","type":"object"},"type":"closure"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":77}","className":"Window","type":"object"},"type":"global"}],"functionName":"route","this":{"description":"MyApplication","objectId":"{\"injectedScriptId\":1,\"id\":78}","className":"Object","type":"object"},"callFrameId":"{\"ordinal\":1,\"injectedScriptId\":1}"},{"location":{"lineNumber":415,"scriptId":"58833168","columnNumber":0},"scopeChain":[{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":79}","className":"Window","type":"object"},"type":"local"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":80}","className":"Window","type":"object"},"type":"closure"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":81}","className":"Window","type":"object"},"type":"global"}],"functionName":"","this":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":82}","className":"Window","type":"object"},"callFrameId":"{\"ordinal\":2,\"injectedScriptId\":1}"},{"location":{"lineNumber":2,"scriptId":"2735632","columnNumber":0},"scopeChain":[{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":83}","className":"Window","type":"object"},"type":"local"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":84}","className":"Window","type":"object"},"type":"closure"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":85}","className":"Window","type":"object"},"type":"global"}],"functionName":"dispatch","this":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":86}","className":"Window","type":"object"},"callFrameId":"{\"ordinal\":3,\"injectedScriptId\":1}"},{"location":{"lineNumber":2,"scriptId":"2735632","columnNumber":0},"scopeChain":[{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":87}","className":"Window","type":"object"},"type":"local"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":88}","className":"Window","type":"object"},"type":"closure"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":89}","className":"Window","type":"object"},"type":"closure"},{"object":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":90}","className":"Window","type":"object"},"type":"global"}],"functionName":"i","this":{"description":"Window","objectId":"{\"injectedScriptId\":1,\"id\":91}","className":"Window","type":"object"},"callFrameId":"{\"ordinal\":4,\"injectedScriptId\":1}"}]}}
18:15:33:085 event {"method":"DOM.inlineStyleInvalidated","params":{"nodeIds":[54,46,48,65,72,67,81,71,74,66,19,76,55,61,82,69,50,60,63,47,51,68,80,52,57,86,83,70,49,64,77,40,59,78,53,56,85,84,58,75,73,87,62]}}

Please try to evaluate. Thanks
Comment 1 Jan Becicka 2013-04-29 16:22:26 UTC
Debuger.paused event come at 18:15:33:001
Comment 2 Martin Entlicher 2013-04-30 08:57:48 UTC
The problem is in MiscEditorUtils, which get a remote file name with file:// protocol.
Comment 3 Martin Entlicher 2013-04-30 10:00:13 UTC
Should be fixed by changeset:   251897:d292f5485ea5
http://hg.netbeans.org/web-main/rev/d292f5485ea5
Comment 4 Quality Engineering 2013-05-02 14:14:25 UTC
Integrated into 'main-golden', will be available in build *201305021042* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d292f5485ea5
User: mentlicher@netbeans.org
Log: #229173: Check ServerURLMapping for all absolute URIs that do not exist locally.