spatie / ray

Debug with Ray to fix problems faster
https://myray.app
MIT License
564 stars 102 forks source link

Incorrect lines of code in ray #698

Closed abkrim closed 2 years ago

abkrim commented 2 years ago

I am working on a project, and at one point, I have noticed that the lines of code in ray do not correspond to the lines of code in the affected class in the debu process with ray.

There is a displacement.

Versions Ray app version: 2.0.1 spatie/laravel-ray 1.29.6 PHP version: 8.1.5 Laravel version: 9.12.2

To Reproduce Steps to reproduce the behavior:

  1. Work with a Job in mode async.
  2. Send jobs to queue
  3. On my code there're some point with ray() for get data debug.
  4. See error. If ray says "PHP file class line XXX" real number line is XXX-YY

Expected behavior Let it work as usual showing the correct line

Screenshots

Log::debug('failed enter '.$exception->getMessage()); Screenshot_20220518_065848 Screenshot_20220518_070014 Screenshot_20220518_070054 Screenshot_20220518_070259

Desktop (please complete the following information):

freekmurze commented 2 years ago

Could you create a minimal app that reproduces the issue?