Navigate to line of code where event was generated
adkamdar
Posts: 3
Hello,
Is there a way to navigate from an event marker displayed in the events bar to the line of code which generated the event?
Assuming the method source is available, I have noticed that clicking on an event in the event bar highlights the method from which the event was generated, and also displays the method source code in the source code pane. But I haven't yet been able to figure out how to get to the specific line of code in that method that caused the event, even when profiling with line level timings.
Thanks.
Ajay
Is there a way to navigate from an event marker displayed in the events bar to the line of code which generated the event?
Assuming the method source is available, I have noticed that clicking on an event in the event bar highlights the method from which the event was generated, and also displays the method source code in the source code pane. But I haven't yet been able to figure out how to get to the specific line of code in that method that caused the event, even when profiling with line level timings.
Thanks.
Ajay
Comments
Apart from marking key signal events with a different message to act as unique identifiers there's no other way to jump to a line of code, only methods.
Regards,
Stephen
In my case the event is actually an invalid operation exception that gets thrown very sporadically, and could possibly be coming from a couple of different places in the same method. So I was hoping to jump straight to the line of code that caused it without having to instrument the code. But in any case, thanks for your quick response.
Regards,
Ajay
http://www.red-gate.com/products/Except ... /index.htm
Take a look at the walkthrough and demo to see if might help.
It can identify lines where particular exceptions can be thrown. You might be able to identify the problem or at least narrow the problem down.
Stephen
[Ctrl + Alt E]