Always try and include debug symbols during plugin load.
This commit is contained in:
@@ -250,7 +250,6 @@ namespace Torch.Managers
|
|||||||
using (var stream = File.OpenRead(file))
|
using (var stream = File.OpenRead(file))
|
||||||
{
|
{
|
||||||
var data = stream.ReadToEnd();
|
var data = stream.ReadToEnd();
|
||||||
#if DEBUG
|
|
||||||
byte[] symbol = null;
|
byte[] symbol = null;
|
||||||
var symbolPath = Path.Combine(Path.GetDirectoryName(file) ?? ".",
|
var symbolPath = Path.Combine(Path.GetDirectoryName(file) ?? ".",
|
||||||
Path.GetFileNameWithoutExtension(file) + ".pdb");
|
Path.GetFileNameWithoutExtension(file) + ".pdb");
|
||||||
@@ -265,9 +264,6 @@ namespace Torch.Managers
|
|||||||
_log.Warn(e, $"Failed to read debugging symbols from {symbolPath}");
|
_log.Warn(e, $"Failed to read debugging symbols from {symbolPath}");
|
||||||
}
|
}
|
||||||
assemblies.Add(symbol != null ? Assembly.Load(data, symbol) : Assembly.Load(data));
|
assemblies.Add(symbol != null ? Assembly.Load(data, symbol) : Assembly.Load(data));
|
||||||
#else
|
|
||||||
assemblies.Add(Assembly.Load(data));
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user