Esri / cityengine-sdk

CityEngine is a 3D city modeling software for urban design, visual effects, and VR/AR production. With its C++ SDK you can create plugins and standalone apps capable to execute CityEngine CGA procedural modeling rules.
https://esri.github.io/cityengine/cityenginesdk
Apache License 2.0
206 stars 64 forks source link

Detailed debugging instructions #33

Closed JimmyLaessig closed 5 years ago

JimmyLaessig commented 5 years ago

Hello there, I'm interested in creating a custom exporter for CE2018 and was wondering if there#s more information on how to achieve step-by-step debugging using Visual Studio or an equivalent.

I'm able to compile it using the proposed cmake & nmake steps. I also am able to compile and run the encoder with DCMAKE-BUILD_TYPE=RelWithDebInfo. Running with DCMAKE_BUILD_TYPE=Debug compiles but CityEngine does not recognize the exporter.

Thanks in advance!

mistafunk commented 5 years ago

On Windows, debug builds of custom encoders are not recognized by CityEngine because they are not ABI compatible with PRT's C++ extension interface (one cannot mix msvc Release and Debug builds).

We recommend to use RelWithDebInfo and disable the optimization, i.e. -O0, this should give you accurate line numbers.

I've logged an internal ticket to improve the documentation in this regard, thanks.

JimmyLaessig commented 5 years ago

Thank you for the quick reply. I'm currently testing development with Visual Studio Code and gdb debugger.

mistafunk commented 5 years ago

Ok for you if we close this issue?