kovacsv / occt-import-js

The emscripten interface for OpenCascade import functionalities.
GNU Lesser General Public License v2.1
141 stars 23 forks source link

Request for Help #31

Open zhangcanfeng612 opened 1 year ago

zhangcanfeng612 commented 1 year ago

Hello, could you please guide me on how to set up a local development environment? I've been struggling with this for quite a while.

kovacsv commented 1 year ago

What part of the code would you like to debug? The C++ or the JavaScript?

zhangcanfeng612 commented 1 year ago

Thank you for your response. I would like to debug C++ code, and I have a question: Can I only generate a source map for debugging in the browser?

We have a time difference, so our responses may be a bit slow. Please accept our apologies for any inconvenience caused.

kovacsv commented 1 year ago

It depends on your setup, on Windows you need to do the following steps:

  1. Install Visual Studio 2022.
  2. Install CMake.
  3. Generate the project with CMake by running the following command from the root of the repository:
    cmake -B build -G "Visual Studio 17 2022" .
  4. Open the generated solution (build/OcctImportJS.sln), compile and run the test application.

On other platforms it's similar, just replace Visual Studio with the native environment on the platform.

zhangcanfeng612 commented 1 year ago

Thank you for your guidance, I will try my best!!!!