troizet opened a new pull request, #6992:
URL: https://github.com/apache/netbeans/pull/6992

   The implementation is made for xdebug since version `3.1.6`. 
   Tested on versions of xdebug: `3.1.6`, `3.2.0`, `3.3.0`.
   
   Code example:
   ```php
   <?php
   
   class MyException extends Exception
   {}
   
   function throwException()
   {
       throw new MyException("Test exception breakpoint", 42);
   }
   
   echo 'Test exception breakpoint';
   
   $foo = $bar['foo'];
   
   try {
       throwException();
   } catch (Exception $e) {}
   ```
   
   before:
   
   
https://github.com/apache/netbeans/assets/9607501/fc8914b6-1de2-482e-a5b0-c4c3dd348d7c
   
   
   after:
   
   
https://github.com/apache/netbeans/assets/9607501/bdf4fb55-e0ef-45e6-a5aa-a615a88ae15c
   
   
   
   for `throw new MyException("Test exception breakpoint")` it looks like this:
   
![without_code](https://github.com/apache/netbeans/assets/9607501/23d9fb32-b951-4c13-9b8c-4a2122f5a994)
   
   for `throw new MyException("", 42)` it looks like this:
   
![with_code_without_message](https://github.com/apache/netbeans/assets/9607501/142ea073-10a2-4779-b40f-ea0e90a27ef5)
   
   for `throw new MyException("")` and `throw new MyException()` it looks like 
this:
   
![with_empty_message](https://github.com/apache/netbeans/assets/9607501/c74c8518-2e5d-4199-9a55-c1177082359d)
   
   How it looks in a dark theme:
   
![exception_message_dark_theme](https://github.com/apache/netbeans/assets/9607501/0caf11b1-19e0-4a0d-bdc7-f492f9c5e4e2)
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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

Reply via email to