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 244388 - Debug breapoints hardly ever hit
Summary: Debug breapoints hardly ever hit
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P2 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-08 16:02 UTC by kingsfleet
Modified: 2014-08-27 10:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (36.64 KB, text/plain)
2014-05-08 16:02 UTC, kingsfleet
Details
Screen grab showing breakpoints added (103.42 KB, image/jpeg)
2014-05-08 16:33 UTC, kingsfleet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kingsfleet 2014-05-08 16:02:27 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Mac OS X version 10.9.2 running on x86_64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01


So I have installed Cordova 3.4.1 and generated the example Hello application from the project template, I find though that I cannot get the tool to reliably hit any of the breakpoints - sometimes they get hit if I restart both the iOS simulator and the Netbeans I am using; but not always. I placed breakpoints both in index.js and in index.html. I did note the following output in the browser log:

"Debugging session with browser was closed."

Everything else, XCode etc is up to date on my machine.

Note I also tried to follow this; but it didn't appear to work properly either with the google map never rendering in the browser.

https://netbeans.org/kb/docs/webclient/cordova-gettingstarted.html
Comment 1 kingsfleet 2014-05-08 16:02:31 UTC
Created attachment 147188 [details]
IDE log
Comment 2 kingsfleet 2014-05-08 16:33:13 UTC
Created attachment 147191 [details]
Screen grab showing breakpoints added
Comment 3 Vladimir Riha 2014-05-12 11:50:09 UTC
I can randomly reproduce it when re-running project from NetBeans, then the simulator becomes black and web inspection does not start (thus debugging does not work either). In that case restarting only IDE does help
Comment 4 Jan Becicka 2014-07-04 14:02:08 UTC
I updated ios-sim binary. Let's see if it helps.
Comment 5 Jan Becicka 2014-07-04 14:02:24 UTC
changeset   : 274995:e803e497f0c2
author      : Jan Becicka <jbecicka@netbeans.org>
date        : Fri Jul 04 15:58:41 CEST 2014
summary     : updated ios-sim
Comment 6 Vladimir Riha 2014-07-10 08:15:40 UTC
Thank you, I'll try it early next week.
Comment 7 Vladimir Riha 2014-07-16 10:47:29 UTC
Unfortunately, it seems like it didn't help. When you re-run project from IDE, Simulator goes still black and all inspection related windows are closed
Comment 8 Vladimir Riha 2014-07-16 10:49:50 UTC
... when the black screen happens, I can press Shift+Cmd+H (aka Home button) to "close" the application and now if you re-run it again from IDE, the application starts OK but still without inspection
Comment 9 Vladimir Riha 2014-07-16 11:26:32 UTC
sounds similar, https://github.com/phonegap/ios-sim/issues/86. Calling "killall launched_sim" before running app from IDE seems to help to avoid the black screen.
Comment 10 Jan Becicka 2014-07-16 11:41:12 UTC
Changeset: f291a0deaf9c
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2014-07-16 13:38
Message:   Black scree fix
Comment 11 Jan Becicka 2014-07-16 11:44:56 UTC
I fixed the issue with black screen (thanks Vlada for workaround). Unfortunately I cannot reproduce the issue, that inspection did not start. I will keep trying...
Comment 12 Quality Engineering 2014-07-17 02:19:20 UTC
Integrated into 'main-silver', will be available in build *201407170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f291a0deaf9c
User: Jan Becicka <jbecicka@netbeans.org>
Log: Black scree fix
Issue #244388 - Debug breapoints hardly ever hit
Comment 13 Jan Becicka 2014-07-17 14:14:02 UTC
Changeset: 5965a83b053c
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2014-07-17 16:11
Message:   Fixed hanging connections to iOS Simulator, added progress to show "connecting to device" and ability to cancel connection.
Comment 14 Quality Engineering 2014-07-18 01:52:01 UTC
Integrated into 'main-silver', will be available in build *201407180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5965a83b053c
User: Jan Becicka <jbecicka@netbeans.org>
Log: Fixed hanging connections to iOS Simulator, added progress to show "connecting to device" and ability to cancel connection.
Issue #244388 - Debug breapoints hardly ever hit
Comment 15 Vladimir Riha 2014-07-22 12:26:51 UTC
Thank you, I've tried it maybe 10 times in a row and it works fine for me.  The same if I close the application prior re-running from IDE. I'll try it with iOS Device tomorrow.

Gerard, could you please try it as well? You can download Dev build from [1]. Thanks


[1] http://bits.netbeans.org/netbeans/trunk/nightly/latest/



Product Version: NetBeans IDE Dev (Build 201407220001)
Java: 1.7.0_65; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_65-b17
System: Mac OS X version 10.9.2 running on x86_64; UTF-8; en_US (nb)
Comment 16 kingsfleet 2014-08-27 10:26:08 UTC
I tried to test this with a build from today; but it deleted all my plugins so my project doesn't entirely work anymore. Is this a new bug - all the plugins had been added on the command line.