question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The name 'X' does not exist in the current context

See original GitHub issue

Hi. We’ve been having two problems with debugging our project, where we use Fody extensively.

First, which we have been living with for a long time, is that in watch/immediate window fully qualified type names must be used even if that. This is especially annoying with extension methods so that

System.Linq.Enumerable.Count(collection)

must be used instead of simple

collection.Count()

which fails saying that method Count cannot be found. I managed to replicate this and it seem that it’s not exactly a PDB problem, because referencing a Fody-modified assembly works fine. The problem only occurs when the currently debugged code is built with Fody,.

The other problem seem to have started occuring very recently. Definitely in 1.23.x. For some local variables Visual Studio 2012 says that they are not in the current context much like in issue #120 though I was unable to replicate the issue just yet.

I’ve just updated to 1.24 and the problem is still there.

Would you like for me to supply some code to replicate the problems or is there something I could try first?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:22 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
SimonCroppcommented, Feb 2, 2018

havnt seen this one in a while so closing

0reactions
SimonCroppcommented, Jan 8, 2019

@ptixed suggest u raise a new issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Name does not exist in the current context
I solved mine by using an Import directive under my Page directive. You may also want to add the namespace to your Inherits...
Read more >
How to solve : The name does not exist in the current ...
This is asimple windows application forms program which deals with files..etc, I have linked a photo to give a clear view of the...
Read more >
The name does not exists in the current context asp.net
Many a times while writing a code we get this error which says, “The name does not exists in the current context”. This...
Read more >
"name does not exist in current context" when creating ...
I'm getting the error code “name 'acctType' does not exist in current context” though I have defined acctType in the Main() method.
Read more >
C# Error CS0103 – The name 'identifier' does not exist in the ...
To fix the error move the declaration of the identifier that is causing the error to a higher scope so that it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found