For DebugBreak() to work you need to be attached to the windows installer
process.  I usually added a call to MessageBox() that prints out the PID of
the current process just before DebugBreak().  Attach to that process id,
dismiss the message box, and the debugger stops and you can step into it.

Steven Bone
http://bonemanblog.blogspot.com

On Tue, Jul 31, 2012 at 11:14 AM, Natalie Carr <natalie.c...@measuresoft.com
> wrote:

> Hi,
>
> Yes tried number one with no success, just found DebugBreak() but am
> wondering where you call it, do you know of any useful examples?
>
> Thanks
>
> -----Original Message-----
> From: Neil Sleightholm [mailto:n...@x2systems.com]
> Sent: 31 July 2012 15:52
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] debug a C++ Custom Action Project in VS 2010
>
> I am aware of 3 methods:
>   1. Set the environment variable MsiBreak to the name of the custom action
>   2. Call DebugBreak()
>   3. Use __asm { int 3 }
>
> In all cases this will cause a dialog to appear which allows you to attach
> VS to the process. Have you tried these?
>
> Neil
>
> -----Original Message-----
> From: Natalie Carr [mailto:natalie.c...@measuresoft.com]
> Sent: 31 July 2012 15:35
> To: wix-users@lists.sourceforge.net
> Subject: [WiX-users] debug a C++ Custom Action Project in VS 2010
>
> Hi could someone please help me and tell me how to debug a C++ Custom
> Action
> Project in VS 2010? I've tried a number of things but nothing seems to
> work.
>
>
>
> Kind Regards,
>
>
>
> Natalie Carr
>
>
>
>
>
>
> ----------------------------------------------------------------------------
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ----------------------------------------------------------------------------
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to