[ https://issues.apache.org/jira/browse/NETBEANS-6177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17465142#comment-17465142 ]
Tomáš Procházka commented on NETBEANS-6177: ------------------------------------------- I can reproduce the issue. It is caused by NETBEANS-5080. [~junichi11] I was able to track the change to commit [https://github.com/apache/netbeans/pull/2577/commits/af08f089ea66dd9961aa601615d8bdda724df3c0] In {{SessionManager.stopSession()}} is first called {{DebugSession.cancel()}} which detaches debugger. Then is called {{DebugSession.stopSession()}} but "stop" command is not send because debugger is detached - see {{{}DebugSession.sendStopCommand(){}}}. > Netbeans not send STOP command to xdebug > ---------------------------------------- > > Key: NETBEANS-6177 > URL: https://issues.apache.org/jira/browse/NETBEANS-6177 > Project: NetBeans > Issue Type: Bug > Components: php - Debugger > Affects Versions: 12.4, 12.5, 12.6 > Environment: PHP 8.0.12 (cli) (built: Oct 22 2021 12:34:48) ( NTS ) > Copyright (c) The PHP Group > Zend Engine v4.0.12, Copyright (c) Zend Technologies > with Zend OPcache v8.0.12, Copyright (c), by Zend Technologies > with Xdebug v3.1.1, Copyright (c) 2002-2021, by Derick Rethans > Reporter: Joseph Marques > Priority: Minor > Attachments: xdebug-netbeans-12.2.log, xdebug-netbeans-12.5.log > > > Netbeans not sending "stop" command to gdb/xdebug when click on "finish > debbuger session" button while debugging and stopped in breakpoint, so script > continue to the end, ignoring all other breakpoints. > The expected behavior is to stop debbuger immediately when click on "finish > debbuger session" button while stopped on breakpoint. > In netbeans 12.2 it works ok, but when tried on 12.4 and 12.5, this problem > happens. > See attachment logs. > > How to reproduce: with breakpoint setted on "echo" line, while debbuging and > stopped in the breakpoint, click on "Finish Debbuger Session" button: > {code:java} > <?php > echo 'exit'; > exit; > {code} > Result: > Expected (Netbeans 12.2): stop without print 'exit' on the console. > Error (Netbeans 12.5): print 'exit' on the console and exit (or execute all > code after echo line if exists). > -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists