Go To Declaration and the DebuggerStepThrough Attribute
When I use the Go To Declaration keystroke (F12) to a method overload that
is marked with the DebuggerStepThrough attribute, the file containing the
class is opened and selected, but the cursor is not placed on the method.
Is this the expected behaviour?
David
Please sign in to leave a comment.
Hello,
I believe R# is not looking at the DebuggerStepThroughAttribute CA in this
situation. Usually R# would succeed in placing the caret on the desired method
if it knows the file to open. Could it be so that R# does not know which
file to open, reverts to Visual Studio, and the latter just opens the file?
What happens if you hit F12 with R# disabled (see Tools -> AddIns)?
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
That appears to be the case.
When I disable R# and hit F12, the same (incorrect) functionality appears -
the correct file is opened but the cursor location is a random location (it
appears to be close to the last position that the cursor was in when the
file was saved).
"Serge Baltic" <baltic@intellij.net> wrote in message
news:dc0986bf13ee668cba3aa68c1686e@news.intellij.net...
>
>> When I use the Go To Declaration keystroke (F12) to a method overload
>> that is marked with the DebuggerStepThrough attribute, the file
>> containing the class is opened and selected, but the cursor is not
>> placed on the method. Is this the expected behaviour?
>
>
>
Hello,
Okay, let's see if it's OK that R# does not know how to go to the method
:) Could you please give more details on the case? Is it ASPX, or late binding,
or something else?
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
>
> Okay, let's see if it's OK that R# does not know how to go to the method
]]>> :) Could you please give more details on the case? Is it ASPX,
or late binding, > or something else?
>
> —
> Serge Baltic
> JetBrains, Inc — http://www.jetbrains.com
> “Develop with pleasure!”
>
> ]]>