使用带有Selenium WebDriver和NUnit的C#调试Visual Studio 2013
本文关键字:调试 Visual 2013 Studio NUnit Selenium WebDriver | 更新日期: 2023-09-27 18:22:41
我一直在写一些代码,幸运的是,直到昨天我添加了一些无法正常工作的新功能,它一直工作得很好。因此,我想调试它以找出如何修复它。当我在代码中设置断点并按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).
这一定是我意识到我只是试着调试一个方法而不是测试本身的一天。现在它正在调试。只需要正确调试即可。;)