Can't step into Interface
Page 1 of 19 Replies - 845 Views - Last Post: 26 April 2012 - 07:03 AM
#1
Can't step into Interface
Posted 25 April 2012 - 07:51 AM
I have two projects in my solution Bridge and BridgeInterface being used by my applications update process and it's throwing a FileLoadException when I try to run use the Initialize() method from the Bridge class.
The problem is I can't step into this method, and I have run out of ideas, I need to see where the fault lies in the code!
The Bridge projects where not originally originally part of the solution, so I added both the projects and have pointed to their PDB symbol files. (The .DLL's are showing as symbols loaded in the modules window.)
I also have "Just My Code" unchecked and all projects in the solution are targetting the .NET 4 Full Profile.
Any ideas?
Replies To: Can't step into Interface
#2
Re: Can't step into Interface
Posted 25 April 2012 - 07:53 AM
You can't "step into" an interface. There's nothing to step into. There is no executing code in an interface.
#3
Re: Can't step into Interface
Posted 25 April 2012 - 08:05 AM
I need debug the method in the Interface implementer "Bridge", because as you rightly say there is no executing code in an interface.
(Looks like I can't rename the title)
This post has been edited by negligible: 25 April 2012 - 08:07 AM
#4
Re: Can't step into Interface
Posted 25 April 2012 - 08:07 AM
#5
Re: Can't step into Interface
Posted 25 April 2012 - 08:17 AM
It's an exception is recognise, it's normally caused by these version numbers in the assembly exe.conf (relating to a MIS we give extra functionality to) not matching the version on our server.
However something strange is happening, which is why I would really like to to get the debugger in the code.
This post has been edited by negligible: 25 April 2012 - 08:19 AM
#6
Re: Can't step into Interface
Posted 25 April 2012 - 08:18 AM
#7
Re: Can't step into Interface
Posted 25 April 2012 - 08:49 AM
This post has been edited by negligible: 25 April 2012 - 08:52 AM
#8
Re: Can't step into Interface
Posted 25 April 2012 - 01:30 PM
#9
Re: Can't step into Interface
Posted 26 April 2012 - 02:09 AM
#10
Re: Can't step into Interface
Posted 26 April 2012 - 07:03 AM
Or do you mean you can't step into a class that implements your interface?
It's not just that you can't step into interfaces because they have no code. You can't create instances of an interface either! There should never be a time when you could even attempt to step into an interface... only when you can step into a class that implements said interface.
If you can't step into something it's because Visual Studio doesn't have the .PDB file to use for stepping into code of referenced libraries. That's why adding the reference 'as project' fixed your problem, when it builds, it generates those .pdb files. You may have also had your project debug settings set to "step into just my code", if the code isn't part of your solution, it isn't considered "your code".
This post has been edited by lordofduct: 26 April 2012 - 07:04 AM
|
|

New Topic/Question
Reply



MultiQuote





|