Граф коммитов

151 Коммитов

Автор SHA1 Сообщение Дата
Dan Thompson (SBS) 7f98155b86 Expand-LIST_ENTRY: add -Count, sanity check Blink
This is useful for when you are looking at a corrupt list.
2024-04-03 14:17:02 -07:00
Dan Thompson (SBS) 1758a37ee8 Update for latest VS 2022: target .net 4.8, tools v143 2024-04-03 13:58:58 -07:00
microsoft-github-policy-service[bot] 31d6a1d00c
Microsoft mandatory file (#101)
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2022-08-17 12:24:37 -07:00
Dan Thompson (SBS) 26a40a1a45 Fix broken VT stuff (enable C1 control chars)
Conhost/Terminal supported C1 control sequences for a while... but then
that apparently caused some problems. So they disabled them by default,
which causes all our VT SGR sequences to be broken (so instead of pretty
color output, you just see gray output, with strange numbers sprinkled
all over). Fortunately they provided a way to turn them back on.

Related: https://github.com/microsoft/terminal/pull/11690
Related: https://github.com/microsoft/terminal/issues/10310

Note that I believe you need a relatively recent build for this change
to have effect.
2022-05-17 15:01:12 -07:00
Dan Thompson (SBS) 1844014197 go ahead and always trace unhandled UDT child types 2022-05-17 15:01:12 -07:00
Rene Nyffenegger 583f0fa7d2
typo (#97) 2021-03-29 22:23:32 -07:00
Rene Nyffenegger 39b61d1678
parse ~~[xxxx] syntax (#96) 2021-03-25 15:45:24 -07:00
Dan Thompson (SBS) 7cf3747681 Fix regression: console output encoding caused garbled output
In commit 07485ef29c, I added this as the first line of Main:

    Console.OutputEncoding = Encoding.Unicode;

With the comment:

    This allows "[Console]::WriteLine( [char] 0x2026 )" to work just as
    well as "[char] 0x2026".

But this caused output from other programs (that weren't emitting UTF16)
to be garbled (because the output was interpreted as UTF16 when captured
into a variable) (#95).

Hopefully setting the output encoding to UTF8 will work out better. At
least it lets both "[Console]::WriteLine( [char] 0x2026 )" and "git
--version" to work.

Addresses #95.
2020-11-09 19:11:12 -08:00
Dan Thompson (SBS) b1b278f1cf simplify New-InheritableEvent 2020-01-01 19:52:30 -08:00
Dan Thompson (SBS) 2399be4529 App.config file is not applicable to a DLL 2020-01-01 19:52:30 -08:00
Dan Thompson (SBS) 55efa745ee another try at preventing std::string from getting too optimized 2020-01-01 19:52:30 -08:00
Dan Thompson (SBS) 6318c9b53d Remove MultipleClrs stuff
Stuff running on the V2 CLR, and multiple desktop .NET CLRs loaded into
a process, are no longer interesting scenarios for me. I don't even know
if this stuff was working correctly.
2020-01-01 19:52:30 -08:00
Dan Thompson (SBS) a0dc5a09a4 remove stale/dead DbgFieldInfo.cs 2020-01-01 19:52:30 -08:00
Dan Thompson 9175d49e05
Merge pull request #81 from Zhentar/rgb
[WIP] Add DbgMemory RGB output format
2020-01-01 18:06:35 -08:00
Dan Thompson ba144f5b77
Merge branch 'master' into rgb 2020-01-01 17:57:52 -08:00
Dan Thompson (SBS) 10b49b0ef4 minor fixups 2020-01-01 17:54:46 -08:00
Dan Thompson (SBS) a675c75ec4 Get rid of unused impersonation stuff (because it's not supported in .NET Core) 2019-12-27 18:02:06 -08:00
Dan Thompson (SBS) 4c7b884803 Logging: switch from EventProvider to EventSource
(because EventProvider does not exist in .NET Core)
2019-12-27 18:02:06 -08:00
Dan Thompson (SBS) 19576eda44 Prevent optimizing away key parts of std::string structure used in tests. 2019-12-27 18:02:06 -08:00
Dan Thompson (SBS) e8129c57a7 Build: upgrade C++ stuff to VC142 build tools 2019-12-27 18:02:06 -08:00
Dan Thompson (SBS) a3aaaeaba9 Upgrade to latest TextTemplating.BuildTasks package. 2019-12-27 18:02:06 -08:00
Zhentar 23b4b23874 Move RGB output to a ConvertTo-DbgRgb cmdlet 2019-11-17 17:45:50 -06:00
Zhentar c55cfbea94 Make extended SGR RGB a first class, push/pop supported escape sequence.
Overhaul AnsiColorWriter to use VT sequences instead of Console API when VT support is present (huge output performance improvement from reduced context switches & associated overhead)
2019-06-18 23:12:06 -05:00
Zhentar fa7abbf5f4 Pull in upstream commit PowerShell/PowerShell@2174dd8
(with a lot of hacking to make it fit)
2019-06-16 22:35:06 -05:00
Zhentar 4fa131b75b Add DbgMemory RGB output format 2019-06-09 17:45:37 -05:00
Dan Thompson (SBS) 29f9b467bd tweaks to release procedure in Contributing.md 2019-05-09 17:43:28 -07:00
Dan Thompson (SBS) 7b32183e8c Bump version to 0.8.27 for development. 2019-05-09 17:43:28 -07:00
Dan Thompson (SBS) a84b57a48a Update version and changelog: 0.8.26 2019-05-08 09:07:47 -07:00
Dan Thompson (SBS) ba76a3aa12 switched PUSH/POP codes
The xterm-style SGR push/pop control sequences conflict with C#
formatting (due to use of curly brackets), so I'm swapping the curly
brackets out for something else ('p' and 'q') for the time being.
2019-05-08 09:07:47 -07:00
Dan Thompson (SBS) 43518385f3 Work around AV in dbgeng when loading image as dump 2019-04-28 00:29:54 -07:00
Dan Thompson (SBS) 1df7e9873d DbgEngWrapper: handle SEH exceptions from dbgeng
Ideally dbgeng would never AV. But sometimes it does, and when it does,
it can be difficult to figure out what is going on. Catching them gives
us a chance, and prevents our frames from being silently ripped through.
2019-04-28 00:29:54 -07:00
Dan Thompson (SBS) 1a53275271 Expose IMAGEHLP_MODULEW64 for script use.
Most of the information is already available, and the fixed-size buffer
members are really terrible (maybe impossible?) to deal with in
PowerShell, but at least some of the fields could potentially be useful.
2019-04-28 00:29:54 -07:00
Dan Thompson (SBS) bc8db4be6b tweak: actually shortest dotnet-gen'ed name is 6 chars 2019-04-28 00:29:54 -07:00
Dan Thompson (SBS) 9b4149690a CrackTemplate: recognize dotnet-generated names 2019-04-25 09:34:39 -07:00
Dan Thompson (SBS) 006de74f54 bug: missed a spot that needs to understand two-char sequences 2019-04-24 16:26:36 -07:00
Dan Thompson (SBS) 9b0c0c0a99 Detect and display 'stripped' PDB symbol type. 2019-04-23 19:43:59 -07:00
Dan Thompson (SBS) 895b202977 Add lm/lmvm commands for windbg compat
Because my muscle memory is too strong, and "vm" is perhaps a teeny tiny
bit easier to type than "|fl".
2019-04-22 19:38:45 -07:00
Dan Thompson (SBS) 8435cd5c7a fix Assert utility function 2019-04-22 19:38:45 -07:00
Dan Thompson (SBS) b3e91e4472 Switch from custom SGR push/pop to xterm's XTPUSHSGR / XTPOPSGR
Some of this code is ugly, but it works.
2019-04-17 07:57:13 -07:00
Dan Thompson (SBS) fcf6689127 move ConsoleControl's AnsiColorWriter to separate file
(for easier comparison with other copies of that code)
2019-04-17 07:57:13 -07:00
Dan Thompson (SBS) a7cabf4355 add a more convenient way to enable formatting proxy debug spew 2019-04-17 07:57:13 -07:00
Dan Thompson (SBS) 1b0c9c5ca4 Switch existing truncate code paths to use a real ellipsis, too. 2019-04-13 13:04:23 -07:00
Dan Thompson (SBS) aefdc8a9b9 Add CaStringUtil.IndentAndWrap swiss army knife function.
(not currently used anywhere)
2019-04-13 13:04:23 -07:00
Dan Thompson (SBS) f651cf18a2 Formatting: handle "calculated properties" in Format-AltTable, -AltList
Also allow multi-line property values in Format-List, though wrapping a la
the built-in Format-List is not done.
2019-04-13 13:04:23 -07:00
Dan Thompson (SBS) d97f7968cf some comments 2019-04-13 13:04:23 -07:00
Dan Thompson (SBS) 07485ef29c Set Console.OutputEncoding to Unicode.
This allows "[Console]::WriteLine( [char] 0x2026 )" to work just as well
as "[char] 0x2026".
2019-04-02 22:09:08 -07:00
Michael Ratanapintha 2627cd6fe7 remove reference to Microsoft-internal tool dscript
It has never been released outside Microsoft, and has been mostly
superseded by the shipping JavaScript scripting support in the
Debugging Tools for Windows package.
2019-04-02 22:08:43 -07:00
Dan Thompson (SBS) dd1b06d865 Give better error when trying to call EnumTypesByName without PDB. 2019-03-26 07:49:46 -07:00
Dan Thompson d4745476df
Fix weird typo. (#79)
This is what you get when you try to type on a bouncy bus, I guess.
2019-03-26 07:36:56 -07:00
Zhentar c484883066 Improve FormatBaseCommand.RenderScriptValue (#76)
* Make FormatBaseCommand.RenderScriptValue work in a moderately less hacky way

Remove CaptureContext, since it's actively broken by these changes

* RenderScriptValue: preserve errors in $error for inspection

Also tweaked the pipe index thing so the PipeIndexPSVariable.ToString()
method is no longer needed.

* Use Import-Module to capture previously bound functions

* Fix error on ln output formatting

* Remove unused PipeIndexPSVariable stuff
2019-03-26 06:49:51 -07:00