“No symbols are loaded” in new Application Framework vb.net project

﹥>﹥吖頭↗ 提交于 2019-12-11 12:51:45

问题


In vb.net 2008, when I start a new project, it defaults to "Enable Application Framework." I add the following code to a button click handler to the main form in the new project:

Dim k As Integer
Dim s As String
For k = 1 To 5000000
  s = Mid(s & k, 1, 30)
Next k
End Sub

Then, when I try to break execution to debug using the pause button, I get the message "No symbols are loaded for any call stack frame. The source code cannot be displayed." If I uncheck the "Enable Application Framework" project option, it breaks and debugs properly. (This also happens with other code -- not just this example).

  1. Is there a way to disable the Application Framework by default in a new project?
  2. Is there a setting that will allow a project with Application Framework enabled to break and debug?
  3. Did I mangle the installation? This is a recent VS2008 installation. Is there some option I should have selected during installation?

回答1:


  1. Yes. Edit the MyApplication.myapp file to have the MySubMain entry set to false, located here: C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplatesCache\VisualBasic\Windows\1033\WindowsApplication.zip

    That will default your project template to disable that feature.

  2. I can debug that code without issue with Application Framework enabled or disabled, I'm not sure why you're getting that error. Do you have something set on the Debug tab that points to some other executable? Is the Configuration property on the Compile or Debug tab set to Release maybe?

  3. I don't think you did.




回答2:


I've solved this problem with disabling the project property..given below Remove the check "Enable Unmanaged Code Debugging" in Project -> Properties -> Debug -> Enable Unmanaged code Debugging



来源:https://stackoverflow.com/questions/1970415/no-symbols-are-loaded-in-new-application-framework-vb-net-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!