【发布时间】:2016-02-21 09:07:48
【问题描述】:
我一直在编写一些代码,幸运的是,它一直运行良好,直到昨天我添加了一些无法正常运行的新功能。因此,我想调试它以弄清楚如何修复它。当我在代码中设置断点并按 F5 开始调试时,我在控制台中收到以下消息,但它什么也不做。
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\DropBox\Automation\Eclipse\Workspace\C\Selenium_EXTMethod\Selenium_ExtMethod\bin\Debug\Selenium.vshost.exe'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x1784 has exited with code 259 (0x103).
The thread 0x28d8 has exited with code 259 (0x103).
'Selenium.vshost.exe' (CLR v4.0.30319: Selenium.vshost.exe): Loaded 'C:\DropBox\Automation\Eclipse\Workspace\C\Selenium_EXTMethod\Selenium_ExtMethod\bin\Debug\Selenium.exe'. Symbols loaded.
The thread 0x2244 has exited with code 259 (0x103).
The thread 0x3298 has exited with code 259 (0x103).
The program '[4956] Selenium.vshost.exe' has exited with code 0 (0x0).
【问题讨论】:
-
您是否使用以下帖子中建议的方法之一在调试模式下运行测试? [链接(]stackoverflow.com/questions/759854/…)
标签: c# debugging visual-studio-2013 selenium-webdriver nunit