I am setting up the ORD SDK on my computer right now and am trying to figure out the breakpoints for debugging.
wiki page reference: https://communities.bentley.com/products/programming/civil_programming/w/wiki/48377/developing-with-the-managed-sdk
I am working with the ManagedSDKExample. The wiki says to load the addin through ORD (MDL Load) to get the symbols to load in Visual Studio and allow the breakpoints to work.. Does this mean that I need to build the project into a debug capable DLL in order to load it as an addin or can I load one of the files in the list below?
Here is a snippet of the debug directory under the VS project.
Thanks,
Jason Brame
ORD 2021 R2
Visual Studio 2017 C#
Hi Jason,
Jason E Brame said:and am trying to figure out the breakpoints for debugging.
What is your knowledge how NET debugging, using what files, works?
Jason E Brame said:Does this mean that I need to build the project into a debug capable DLL
In my opinion the wiki page is clear: Open the project using the openSln.bat file and use Visual Studio to build it in debug mode.
How any code can be debugged, when it is not built together with debug information (pdb)?
Jason E Brame said: or can I load one of the files in the list below?
I assume the files on your picture are from Visual Studio work folder, used to store temporary files during building process. None from them can be loaded to ORD.
Jason E Brame said:Visual Studio 2017 C#
If you plan to use NET only (and not C++ API), I recommend to use the latest Visual Studio 2022 (or at least 2019).
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Please read this topic recently posted in this forum.
Henrique
Answer Verified By: Jason E Brame
Henrique,
That video is exactly what i am looking for. Thanks.
Jason
Jan,
Thanks, for the reply.
Jan Šlegr said:Jason E Brame said:and am trying to figure out the breakpoints for debugging. What is your knowledge how NET debugging, using what files, works?
I have used VBA for Microstation for years. I am new to C# and am feeling my way through this process. I spent the few months learning the base C# language and am trying to make the transition to working with ORD Addins.
Jan Šlegr said:Jason E Brame said: or can I load one of the files in the list below? I assume the files on your picture are from Visual Studio work folder, used to store temporary files during building process. None from them can be loaded to ORD.
yes that is correct. I thought that was the case and added the image so that i would give a visual to the question.
Jan Šlegr said:Jason E Brame said:Visual Studio 2017 C# If you plan to use NET only (and not C++ API), I recommend to use the latest Visual Studio 2022 (or at least 2019).
I have access to VS 2022 but loaded VS 2017 because the one batch delivered with the ORD SDK file says it's for VS 2017. I will get rid of 2017 and put 2022 on my computer.