Attach to process throws exception
I am trying to use the windbg extension to attach to a process and i get the exception below.
Here is my config: { "name": "WinDbg", "type": "windbg", "request": "attach", "target": "484", "verbosity": "debug", "workingDir": "${workspaceRoot}", "windbgpath": "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\dbgeng.dll" },
2018-06-05 19:03:49,280 INFO Initialize - Log file location: "C:\Users\xxx\AppData\Roaming\WinDbgDebugger\debug.log"2018-06-05 19:03:50,272 INFO DebuggerApi - Attaching to PID: 4842018-06-05 19:03:50,814 DEBUG OutputCallbacks -
Microsoft (R) Windows Debugger Version 10.0.17134.1 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
2018-06-05 19:03:50,824 DEBUG OutputCallbacks - *** wait with pending attach2018-06-05 19:03:50,834 DEBUG OutputCallbacks - Symbol search path is: srv*
2018-06-05 19:03:50,840 DEBUG OutputCallbacks - Executable search path is:
2018-06-05 19:03:50,840 DEBUG OutputCallbacks - ModLoad: 000000a045b80000 000000a045c66000 C:\Program Files\xx\xxx.exe2018-06-05 19:03:50,892 WARN SourceHelpers - Error reading sources location: 'The system cannot find the file specified'
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at WinDbgDebug.WinDbg.Helpers.SourceHelpers.GetRustDefaultSourceLocation() in F:\projects\windbg-debug\src\windbg-debug\WinDbg\Helpers\SourceHelpers.cs:line 47
at WinDbgDebug.WinDbg.Helpers.SourceHelpers.GetSafely(Func`1 func) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\Helpers\SourceHelpers.cs:line 27
2018-06-05 19:03:50,907 FATAL WinDbgDebugger - Fatal exception occured: System.ArgumentException: The path is not of a legal form.
at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at WinDbgDebug.WinDbg.WinDbgWrapper.InitializeSymbols(String filePath, String[] symbolPaths) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 210
at WinDbgDebug.WinDbg.WinDbgWrapper.DoAttach(AttachMessage message) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 169
at WinDbgDebug.WinDbg.WinDbgWrapper.ProcessMessages() in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 490
at WinDbgDebug.WinDbg.WinDbgWrapper.MainLoop(Object state) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 442
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
System.ArgumentException: The path is not of a legal form.
at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at WinDbgDebug.WinDbg.WinDbgWrapper.InitializeSymbols(String filePath, String[] symbolPaths) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 210
at WinDbgDebug.WinDbg.WinDbgWrapper.DoAttach(AttachMessage message) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 169
at WinDbgDebug.WinDbg.WinDbgWrapper.ProcessMessages() in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 490
at WinDbgDebug.WinDbg.WinDbgWrapper.MainLoop(Object state) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 442
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Unhandled Exception: System.ArgumentException: The path is not of a legal form.
at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at WinDbgDebug.WinDbg.WinDbgWrapper.InitializeSymbols(String filePath, String[] symbolPaths) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 210
at WinDbgDebug.WinDbg.WinDbgWrapper.DoAttach(AttachMessage message) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 169
at WinDbgDebug.WinDbg.WinDbgWrapper.ProcessMessages() in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 490
at WinDbgDebug.WinDbg.WinDbgWrapper.MainLoop(Object state) in F:\projects\windbg-debug\src\windbg-debug\WinDbg\WinDbgWrapper.cs:line 442
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)2018-06-05 19:03:52,463 INFO Initialize - Log file location: "C:\Users\xxx\AppData\Roaming\WinDbgDebugger\debug.log"