runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Debugging CoreCLR

Open cheers00 opened this issue 11 years ago • 4 comments

Followed the steps to build solution and debug at https://github.com/dotnet/coreclr/wiki/Developer-Guide and I set my HelloWorld.exe (complete path) as command parameter. When I try to debug, I get the following errors saying Cannot find or open PDB files. Where do I find them?

'CoreRun.exe' (Win32): Loaded 'C:\Projects\GitHub\coreclr\binaries\Product\x64\debug\CoreRun.exe'. Symbols loaded.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\msvcr120.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Projects\GitHub\coreclr\binaries\Product\x64\debug\coreclr.dll'. Symbols loaded.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Cannot find or open the PDB file.
'CoreRun.exe' (Win32): Loaded 'C:\Projects\GitHub\coreclr\src\MyApp\HellowWorld\bin\Debug\HellowWorld.exe'. 
'CoreRun.exe' (Win32): Unloaded 'C:\Projects\GitHub\coreclr\src\MyApp\HellowWorld\bin\Debug\HellowWorld.exe'
The program '[10488] corerun.exe' has exited with code -1 (0xffffffff).

cheers00 avatar Feb 09 '15 19:02 cheers00

That's perfectly fine, and that's not an errors, but warnings - you don't have PDBs for Windows libraries. If you absolutely want to get rid of those - you need to enable symbol server (beware: it's slow) http://support.microsoft.com/kb/319037 It describes .NET Debugger, but for VC++ it's all the same.

Alexx999 avatar Feb 09 '15 20:02 Alexx999

Thanks. I can build the solution without any problem but during debug, I get the following error messages.

    1   IntelliSense: this operator is not allowed in a constant expression c:\Projects\GitHub\coreclr\src\vm\i386\stublinkerx86.h  543 1   cee_wks
    2   IntelliSense: this operator is not allowed in a constant expression c:\Projects\GitHub\coreclr\src\vm\i386\stublinkerx86.h  544 1   cee_wks
    3   IntelliSense: this operator is not allowed in a constant expression c:\Projects\GitHub\coreclr\src\vm\i386\stublinkerx86.h  728 1   cee_wks
    4   IntelliSense: this operator is not allowed in a constant expression c:\Projects\GitHub\coreclr\src\vm\i386\stublinkerx86.h  729 1   cee_wks
    5   IntelliSense: expected a '}'    c:\Projects\GitHub\coreclr\src\inc\cortypeinfo.h    36  1   cee_wks
    6   IntelliSense: explicit type is missing ('int' assumed)  c:\Projects\GitHub\coreclr\src\inc\appxutil.h   42  12  cee_wks
    7   IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  240 12  cee_wks
    8   IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  241 12  cee_wks
    9   IntelliSense: identifier "CLASS__REFLECTION_PERMISSION" is undefined    c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  242 12  cee_wks
    10  IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  243 12  cee_wks
    11  IntelliSense: identifier "CLASS__REFLECTION_PERMISSION" is undefined    c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  244 12  cee_wks
    12  IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  245 12  cee_wks
    13  IntelliSense: identifier "CLASS__REFLECTION_PERMISSION" is undefined    c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  246 12  cee_wks
    14  IntelliSense: identifier "CLASS__PERMISSION_SET" is undefined   c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  247 12  cee_wks
    15  IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  248 12  cee_wks
    16  IntelliSense: identifier "CLASS__UI_PERMISSION" is undefined    c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  249 12  cee_wks
    17  IntelliSense: declaration is incompatible with "PCODE __stdcall VSD_ResolveWorker(TransitionBlock *pTransitionBlock, TADDR siteAddrForRegisterIndirect, size_t token, UINT_PTR flags)" (declared at line 51)    c:\Projects\GitHub\coreclr\src\vm\virtualcallstub.h 544 18  cee_wks

cheers00 avatar Feb 09 '15 20:02 cheers00

You can probably just ignore Intellisense errors if it compiles and works fine since it quite often makes false errors in large solutions On Feb 9, 2015 10:57 PM, "cheers00" [email protected] wrote:

Thanks. I can build the solution without any problem but during debug, I get the following error messages.

1   IntelliSense: this operator is not allowed in a constant expression c:\Projects\GitHub\coreclr\src\vm\i386\stublinkerx86.h  543 1   cee_wks
2   IntelliSense: this operator is not allowed in a constant expression c:\Projects\GitHub\coreclr\src\vm\i386\stublinkerx86.h  544 1   cee_wks
3   IntelliSense: this operator is not allowed in a constant expression c:\Projects\GitHub\coreclr\src\vm\i386\stublinkerx86.h  728 1   cee_wks
4   IntelliSense: this operator is not allowed in a constant expression c:\Projects\GitHub\coreclr\src\vm\i386\stublinkerx86.h  729 1   cee_wks
5   IntelliSense: expected a '}'    c:\Projects\GitHub\coreclr\src\inc\cortypeinfo.h    36  1   cee_wks
6   IntelliSense: explicit type is missing ('int' assumed)  c:\Projects\GitHub\coreclr\src\inc\appxutil.h   42  12  cee_wks
7   IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  240 12  cee_wks
8   IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  241 12  cee_wks
9   IntelliSense: identifier "CLASS__REFLECTION_PERMISSION" is undefined    c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  242 12  cee_wks
10  IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  243 12  cee_wks
11  IntelliSense: identifier "CLASS__REFLECTION_PERMISSION" is undefined    c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  244 12  cee_wks
12  IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  245 12  cee_wks
13  IntelliSense: identifier "CLASS__REFLECTION_PERMISSION" is undefined    c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  246 12  cee_wks
14  IntelliSense: identifier "CLASS__PERMISSION_SET" is undefined   c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  247 12  cee_wks
15  IntelliSense: identifier "CLASS__SECURITY_PERMISSION" is undefined  c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  248 12  cee_wks
16  IntelliSense: identifier "CLASS__UI_PERMISSION" is undefined    c:\Projects\GitHub\coreclr\src\vm\securitypolicy.h  249 12  cee_wks
17  IntelliSense: declaration is incompatible with "PCODE __stdcall VSD_ResolveWorker(TransitionBlock *pTransitionBlock, TADDR siteAddrForRegisterIndirect, size_t token, UINT_PTR flags)" (declared at line 51)    c:\Projects\GitHub\coreclr\src\vm\virtualcallstub.h 544 18  cee_wks

— Reply to this email directly or view it on GitHub https://github.com/dotnet/coreclr/issues/171#issuecomment-73588409.

Alexx999 avatar Feb 09 '15 23:02 Alexx999

As a cleanup task I'm going to speculatively close this out. @cheers00, if that's in error please let me know.

MattWhilden avatar Mar 20 '15 01:03 MattWhilden