View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0002263 | Xdebug | Step Debugging | public | 2024-04-22 10:37 | 2024-07-17 18:15 | 
| Reporter | duzenko | Assigned To | derick | ||
| Priority | normal | Severity | feature | Reproducibility | always | 
| Status | resolved | Resolution | won't fix | ||
| Summary | 0002263: Ignore warnings on select lines? | ||||
| Description | When the file  I'd think that adding an '@' should generally prevent warning breakpoints but in practice it does not work. Is there any other to suppress warnings on specific lines of code? | ||||
| Steps To Reproduce |  | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 8.2.0-8.2.9 | ||||
|  | I understand that I can add a branch and check the condition manually. However in general I'd like to avoid xdebug-specific code that does not do anything useful on production  | 
|  | Hi, I am not sure how to do this. In many cases, people do want breakpoints when a warning gets silenced. For example, using @mysql_open() with the MySQL extension not being loaded would be mega annoying to debug otherwise. I would think that this is a use-case specific issue which is better suited in IDEs. For example, PhpStorm already has "Step Filters" functionality (Preferences > PHP > Debug > Step Filters) which does this for stepping. It might actually also work for breakpoints too. If it doesn't, I would probably file a feature request with them. On the Xdebug side, I can't see a reasonably simple way of how to configure this. I certainly can't make breakpoints not work for any location where  cheers, | 
|  | @derick What about PHPDoc? Could it be used instead of global option? | 
|  | I am not going add a new INI setting for this, as I don't really know how that setting's values should even look like. You were also the only one to ask for this. | 
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2024-04-22 10:37 | duzenko | New Issue | |
| 2024-04-22 10:39 | duzenko | Note Added: 0006928 | |
| 2024-05-06 10:46 | derick | Severity | minor => feature | 
| 2024-05-06 10:46 | derick | Status | new => feedback | 
| 2024-05-06 10:46 | derick | Note Added: 0006944 | |
| 2024-05-06 11:10 | duzenko | Note Added: 0006946 | |
| 2024-05-06 11:10 | duzenko | Status | feedback => new | 
| 2024-07-17 18:15 | derick | Assigned To | => derick | 
| 2024-07-17 18:15 | derick | Status | new => resolved | 
| 2024-07-17 18:15 | derick | Resolution | open => won't fix | 
| 2024-07-17 18:15 | derick | Note Added: 0007005 | 
