Linking pdb file from a C DLL in PyCharm

已回答

Hello, I am developing a DLL in C++ with a C wrapper and I want to read it from many languages than Matlab, C#, Python and LabVIEW. I am fixing different issues linked to all these languages. For example, recently I change all the wchar_t type from my wrapper to unsigned short to be able to read the DLL from LabVIEW. However, my wrapper on Python is not working anymore because even using POINTER(c_ushort) PyCharm return me an error from the dll but I can't investigate why.

This way, I would like to be able to debug my DLL from my Python program using the pdb file generated by Visual Studio with the library. I am already doing this from Visual Studio with my C# plugin but I don't find a way to do it from PyCharm.

Any idea ?

Thank you in advance

0
正式评论

Hello.

If I understood you correctly, you want to debug C++ code from PyCharm using .dll and its symbols (pdb), right?

PyCharm does not support it. 

Jetbrains CLion IDE is able to debug C++ code for many modern compilers aswell as Python code (with Python plugin installed)

It has 30 days trial, so you can check if your scenario works there. https://www.jetbrains.com/clion/download/

Avatar
Permanently deleted user

You exactly understood what I wish. Thank you for the answer so ;)

0

请先登录再写评论。