Forum Home › Forums › Development and Integration › New device drivers
Tagged: drivers
- This topic has 9 replies, 3 voices, and was last updated 3 years, 3 months ago by
Singapore.
-
AuthorPosts
-
February 11, 2021 at 12:00 pm #8283
fedex
ParticipantHi,
i want to develop a new device drivers.
I want to know how to do the debug tests from VisualStudio?
Thanks for the support.February 11, 2021 at 2:32 pm #8284
MikhailModeratorHi,
To debus a DLL, you need to attach to the process that uses the DLL. In case of drivers, attach debugger to ScadaComm.exe
February 11, 2021 at 3:42 pm #8285fedex
ParticipantHi,
thanks for article and examples.
Where do I find ScadaComm.exe, and how do I attach the dll to the process?
Thanks for the support.February 12, 2021 at 8:10 am #8286fedex
ParticipantHi,
I attach the dll to the process ScadaCommSvc.exe.
Thanks for the support.February 12, 2021 at 2:35 pm #8287
MikhailModeratorOK
August 5, 2022 at 11:17 am #10448Singapore
ParticipantI attached the DLL process of the new driver to scadacommsvc.exe in the debug directory, scadacommsvc Exe is registered as a service. However, the breakpoint in the DLL is invalid. The prompt: the breakpoint will not be hit at present, and no symbols have been loaded for the document。What are the detailed steps of using VisualStudio to debug the driver?
August 6, 2022 at 7:29 am #10452
MikhailModeratorYou should build your DLL in the Debug configuration in VS. Then copy to the Communicator installation directory.
What are the detailed steps of using VisualStudio to debug the driver?
There is no special tricks for Rapid SCADA debugging. Search for general info how to debug dlls.
August 6, 2022 at 8:20 am #10454Singapore
ParticipantHello, thank you very much for your reply. Can I understand that the newly developed driver DLL can not be debugged in the administrator application source code debugging mode, but can only create a new solution to debug the DLL separately or copy the DLL to the communicator installation directory? I wonder if there is any way to debug DLL in the administrator application source code debugging mode? Thank you very much for your support.
August 8, 2022 at 8:28 am #10455
MikhailModeratorHello,
1. Run Visual Studio as administrator.
2. Open the solution that contains the driver.
3. Switch VS to Debug configuration and build the driver.
4. Copy the created driver DLL to Communicator.
5. Configure and start Communicator service.
6. Attach to Communicator process from VS.August 8, 2022 at 10:10 am #10456Singapore
ParticipantHello, thank you very much for your answer. According to the steps provided by you, I can debug the DLL program normally. Thank you for your support.
-
AuthorPosts
- You must be logged in to reply to this topic.