microsoft / MIEngine

The Visual Studio MI Debug Engine ("MIEngine") provides an open-source Visual Studio Debugger extension that works with MI-enabled debuggers such as gdb and lldb.
MIT License
818 stars 218 forks source link

Fixing File writing for EngineLogger (#1415) #1417

Closed WardenGnaw closed 1 year ago

WardenGnaw commented 1 year ago

With the Natvis Diagnostics Logger work, the file logger would fail since it would not close the file.

This PR also runs 'File.CreateText' in MIDebugCommandDispatcher so errors can be caught earlier and not set an invalid file path.