-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does Not Report Actual Error Line Number & File #72
Comments
Just to clarify, what is the file/line/class/method which the FatalErrorException is occurring on? You mention that it is included in the raw view but not in the prettyprinted view. Assuming the actual SendException call is occuring in ProductController? Also, is this object a subclass of ErrorException or Exception? After inspecting this it looks like Laravel may be altering this process somehow. Are you sending it from an override of |
In It's a subclass of Exception. Even if it is some special Exception subclass, it should (and does) still have the methods to get line and file. I'm sending it as an override of |
I am using Laravel 5.2 and am sending the exception in my override of report as referenced by @fundead but in Raygun I am not getting a stack trace or a line number. In this example the syntax error is actually in ContactController.php.
|
Thanks for providing this, that should be enough of a repro for us to locate the cause of the issue. This provider isn't immediately scheduled for a review due to other pressing work in the pipeline but I have added this to the queue and will look at resolving this for you when next possible. |
Closing this issue for now. If you wish to see this issue addressed please create a new issue or post within our forums (https://raygun.com/forums). Thank you. |
I was testing Raygun out for PHP, but I noticed that it doesn't actually report the file name and line number of the actual error, which is the most important part.
I am just manually doing a
$raygunClient->SendException($exception)
and I get a something like this:The error was on
ProductController.php:39
, something I know cuz 1) I put the error there and 2) if I log$exception->getFile()
and$exception->getLine()
(or it's even reported in$exception->getTraceAsString()
), I can find this information.Am I doing something wrong, or would it be possible for this information to be added to the error reports?
Here's the relevant part of the raw data (which does have the file, but it isn't displayed in any of the "pretty views" but no line number):
The text was updated successfully, but these errors were encountered: