Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4461

Debug PHP file doesn't work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: 12.0.1
    • Fix Version/s: None
    • Component/s: php - Debugger
    • Labels:
    • Environment:
      Netbeans 12.0
      PHP 7.1
      Chromium Version 83.0.4103.61
      NetBeans Connector 1.1.5

      Description

      I have a problem when trying to debug a PHP file, I set a breakpoint, start the debugger, the debugger stop at the breakpoint, so far, so good.

      Then I press F8 to step over and instead of going to the next line of code, the debugger  step over the current class  and stop at the line next to class call.

      Sample PHP class call :

      $res .= DG\MvSkin\ViewHelpers\Format\DateViewHelper::renderStatic($arguments); 
      $res .= '</p></div>';
      

       

      The class (simplified) :

      namespace DG\MvSkin\ViewHelpers\Format;
      
      class DateViewHelper extends AbstractViewHelper implements CompilableInterface
      { 
          public static function renderStatic(array $arguments)
          {
              $date = $arguments['date'];
              $format = $arguments['format'];
              
              return $date;
          }
      }

       

      If I set a breakpoint at line $date = $arguments['date']; and then press F8 (it's the same with F7 or Ctrl+F7) then the debugger jump to line : $res .= '</p></div>';  instead of next line.

      Note : the function is a public static function.

      The same use case works well with previous version (Netbeans 11).

       

       

        Attachments

        1. netbeans.tgz
          0.6 kB
          Florian Rival

          Activity

            People

            • Assignee:
              junichi11 Junichi Yamamoto
              Reporter:
              Oktopuce Florian Rival
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: