[
https://issues.apache.org/jira/browse/NETBEANS-2950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16971999#comment-16971999
]
Steven Ingram commented on NETBEANS-2950:
-----------------------------------------
[~lkishalmi] The pull request looks good and accomplishes the goal from my
perspective.
So when you stated that I "walked around the problem quite a bit" was that a
good thing or a bad thing? I can't tell :)
Some observations I want to point out, are that in my investigation I found
that the "Finish Debugging Session" button on top of the IDE handles the cancel
differently than the way that the red square button in the "output" window and
the "kill process" dialog handle a cancel. Your solution seems to cancel
debugging like the red button and kill process dialog. Compare this screen
shot to the one I added yesterday, this one was output from your code.
!pullReqFix.jpeg!
I just wanted to point this out because I was trying to mimic the Maven "Finish
Debugging Session" behavior which calls the JPADebuggingImp.finish() method.
But if we're good with one way being as good as the other, then no worries.
Also, I've not had to check someone's pull request before and It took too long
for me to check it out so I think I'm doing it wrong.
I checked out your fork and then switched to your NETBEANS-2950 branch to then
rebuild the entire project. Is there an easier way?
I hope I helped out here even if I don't get a pull request ;)
Regards,
Steven
> Cannot finish app by stopping debugging
> ---------------------------------------
>
> Key: NETBEANS-2950
> URL: https://issues.apache.org/jira/browse/NETBEANS-2950
> Project: NetBeans
> Issue Type: Bug
> Components: projects - Gradle
> Affects Versions: 11.0
> Reporter: Jaroslav Tulach
> Assignee: Steven Ingram
> Priority: Minor
> Labels: EasyFix, pull-request-available
> Attachments: GradleSuccess.jpeg, pullReqFix.jpeg
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When I create Gradle/Java Application and try to debug it, it doesn't stop
> when I press the "Finish Debugging" button. That is weird and certainly
> different to behavior of Maven and Ant projects. Example:
> {code:java}
> public class Main {
> public static void main(String[] args) throws Exception {
> int cnt = 0;
> while (true) {
> Thread.sleep(1000);
> System.out.println("counting " + ++cnt);
> }
> }
>
> }{code}
> Debug the project. Then press the big red button in the debugger toolbar. The
> debugger disconnects, but immediately reconnects again and the application
> continues. I find this unexpected. Output of one of my executions:
> {code:java}
> > Task :compileJava
> > Task :processResources NO-SOURCE
> > Task :classes
> > Task :run
> Listening for transport dt_socket at address: 5005
> counting 1
> counting 2
> counting 3
> counting 4
> counting 5
> Listening for transport dt_socket at address: 5005
> counting 6
> Listening for transport dt_socket at address: 5005
> Listening for transport dt_socket at address: 5005
> counting 7
> counting 8
> BUILD ABORTED{code}
> At the end I pressed the "small red" button in on the left side of the output
> window and that one terminates the app - e.g. workaround exists.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists