Debug Event server plugin with VS2013

Hello, I’m trying to debug my event server plugin with vs2013 and I have one issue : I followed the instructions in the MIP SDK documentation (start external program with the “-x” option for services). But when I’m debuging the plugin, I have a window :

When I click on stop, the text changes to start, but it does not seem to start or stop any application. Moreover, as you can see on the picture my breakpoint is not found. So my question is : What is this window ? and how can I debug my event server plugin with vs2013?

This window you see is the Event Server and you can control if it runs using start and stop. When the Event Server runs it is important that you have your plugin in the right folder so that it will run in the Event Server. If you put your dll and the plugin.def in the right folder - [C:\Program](file:C:/Program) Files (x86)\Milestone\MIPPlugins or [C:\Program](file:C:/Program) Files\Milestone\MIPPlugins depending on whether your Event Server is 32 or 64 bit, it should run and break points be reached, singlestep debugging be possible etc.

A handy way to make sure your plugin is in the right place is to create a Post-build event command line like

xcopy /Q /Y /R “$(TargetDir)*.*” “[C:\Program](file:C:/Program) Files (x86)\Milestone\MIPPlugins\MyPlugin”

xcopy /Q /Y /R “$(TargetDir)*.*” “[C:\Program](file:C:/Program) Files\Milestone\MIPPlugins\MyPlugin”

Ok thank you for your answer. My dll are copied for sure in the good directory ([C:\Program](file:C:/Program) Files\Milestone\XProtect Event Server\MIPPlugins\MyPlugin) but I still have the same proble;, when I want to start the program, the services.msc program indicates that the service Event Server is not running. Moreover, I still have my unreachable breakpoint in Visual.

EDIT: Whatever the architecture of the project (Any CPU, Mixed Platforms, x64). My installation is x64 one.

You cannot have the event server running from both services.msc and from within VS, there could be something there. If you get the event server service running another way to debug is to use debug - attach to process in VS.

The event server logs will tell you if the plugin is loaded, and you can put in output that will be seen in the event servers mip-logs. See [C:\ProgramData\Milestone\XProtect](file:C:/ProgramData/Milestone/XProtect) Event Server\logs)

Perhaps you should take a step back, get the event server running, try to make it run the ConfigDump tool sample, just to see you can get started.

Ok It works now ! I just needed to run the vs debug program while the event service was not running.