开发者

Cannot Debug In Visual Studio

I have just a form in my VB.Net project and even when I try debugging that - there is nothing going on besides the form being loaded - I get the error:

No symbols are loaded for any call stack frame. The source code cannot be displayed.

I've tried using this solution from StackOverflow, but this is either oudated or pertains only to C++. I've also tried using this article from the MSDN Forum, however, this also did not seem to help as I wasn't quite sure what the answer was telling me to do.

Has anybody else came across this problem and found a solution? It's very frustrating that I'm receiving this error and I only have a form showing up.

Edit: I found another solution here but I don't quite know what that means ... yet. I was going to look into this 开发者_运维百科but I'd really like to know why this doesn't work when Application Framework is enabled.


Make sure you are running in debug and not release. Build>Configuration Manager>Active Solution Configuration = Debug


Get rid of all compiler warnings/errors and rebuild. Look at your Sub New() and form_load events closely. Dodgy form inheritance can cause this. Dodgy module level vars also. From memory even when you fix the problem you need to rebuild to get the designer back. Might be a my.Settings issue.

Sorry for imprecise advice, I have had this problem before but I cannot remember the details.


A quick workaround is to just uncheck "Enable unmanaged code debugging" and "Enable the Visual Studio hosting process" in the Debug section of the Project Properties.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜