From 229242cf7c328b89b5aa65ed7a04e33c8b93b393 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Thu, 14 Jul 2022 15:19:53 -0700 Subject: Rename "samples" segment to "tools" This segment is a bit of a "miscellaneous section" in the WiX repo. As such it has been difficult to name. I originally eschewed the name "tools" because what is in the "wix" segment was once called "tools". However, now that wix.exe is firmly established as the entry point for WiX operations, I've become comfortable with its segment being named "wix". That meant "tools" was again available and "tools" better describes the content of this section. --- .../Dtf/Documents/Guide/Content/debuggingcas.htm | 66 ---------------------- 1 file changed, 66 deletions(-) delete mode 100644 src/samples/Dtf/Documents/Guide/Content/debuggingcas.htm (limited to 'src/samples/Dtf/Documents/Guide/Content/debuggingcas.htm') diff --git a/src/samples/Dtf/Documents/Guide/Content/debuggingcas.htm b/src/samples/Dtf/Documents/Guide/Content/debuggingcas.htm deleted file mode 100644 index ca1be161..00000000 --- a/src/samples/Dtf/Documents/Guide/Content/debuggingcas.htm +++ /dev/null @@ -1,66 +0,0 @@ - - - Debugging Managed Custom Actions - - - - - - -
- Deployment Tools Foundation
- Debugging Managed Custom Actions
-
- - Development Guide > - Managed CAs > - Debugging - -
-
-
- -
-

There are two ways to attach a debugger to a managed custom action.

-

Attach to message-box: Add some temporary code to your custom action to display a - message box. Then when the message box pops up at install time, you can attch your - debugger to that process (usually identifiable by the title of the message box). - Once attached, you can ensure that symbols are loaded if necessary (they will be automatically - loaded if PDB files were embedded in the CA assembly at build time), then set breakpoints - anywhere in the custom action code.

-

MMsiBreak environment variable: When debugging managed custom actions, - you should use the MMsiBreak environment variable instead of MsiBreak. Set the MMsiBreak - variable to the custom action entrypoint name. (Remember this might be different from - the method name if it was overridden by the CustomActionAttribute.) When the CA proxy - finds a matching name, the CLR JIT-debugging dialog - will appear with text similar to "An exception 'Launch for user' has occurred - in YourCustomActionName." The debug break occurs after the custom - action assembly has been loaded, but just before custom action method is invoked. - Once attached, you can ensure that symbols are loaded if necessary, - then set breakpoints anywhere in the custom action code. Note: the MMsiBreak - environment variable can also accept a comma-separated list of action names, any of - which will cause a break when hit.

-


- -
- - -
- - - -- cgit v1.2.3-55-g6feb