Debugging Corel X7 .NET AddOn

There are 2 ways of debugging an X7 AddOn I am aware of:

  • Attach to a running Corel process: Debug\Attach to Process - find Corel.exe


  • Set the debug options in the project's properties, so when hitting F5 CorelDRAW is launched first


The expected behavior is now pretty obvious:


Note: When going for the latter option, make sure the path in the AppUI.xslt points to a dll that is created when compiling the project. Otherwise VS will not see the dll being loaded and debugger will not hit any breakpoints (when going for the former option, in order to avoid a need to copy a dll over and over again do debug it, it is worth adjusting the path too ;)

blog comments powered by Disqus