请问开发模式如何调试core源码

Clone development environment to work dir

git clone https://github.com/ONLYOFFICE/build_tools.git

Modify Docker Images

Note: Do not prefix docker command with sudo. This instruction show how to use docker without sudo.

cd build_tools/develop docker pull onlyoffice/documentserver docker build --no-cache -t documentserver-develop .

Note: The dot at the end is required.

Note: Sometimes script may fail due to network errors. Just restart it.

Clone development modules

Clone development modules to the work dir

  • sdkjs repo is located here
  • web-apps repo is located here
  • server repo is located here

git clone https://github.com/ONLYOFFICE/sdkjs.git git clone https://github.com/ONLYOFFICE/web-apps.git git clone https://github.com/ONLYOFFICE/server.git

docker run on Linux or macOS

run with sdkjs and web-apps

docker run -i -t -p 80:80 --restart=always -e ALLOW_PRIVATE_IP_ADDRESS=true -v $(pwd)/sdkjs:/var/www/onlyoffice/documentserver/sdkjs -v $(pwd)/web-apps:/var/www/onlyoffice/documentserver/web-apps documentserver-develop

or run with sdkjs, web-apps and server

docker run -i -t -p 80:80 --restart=always -e ALLOW_PRIVATE_IP_ADDRESS=true -v $(pwd)/sdkjs:/var/www/onlyoffice/documentserver/sdkjs -v $(pwd)/web-apps:/var/www/onlyoffice/documentserver/web-apps -v $(pwd)/server:/var/www/onlyoffice/documentserver/server documentserver-develop

我想要调试core,如何添加

你好 @yiwen

您所指的「核心」具體是指什麼?build_tools 的讀我檔已說明如何編譯 Document Server 並在 Docker 容器中執行:GitHub - ONLYOFFICE/build_tools: Used to build ONLYOFFICE DocumentServer-related products

或許我誤解了您的疑問,請進一步說明。

就是core 源代码如何像上面 挂载sdkjs和web-apps一样,可以直接修改代码,然后在开发模式中看到结果

恐怕无法进行修改。您希望在开发模式下看到什么样的结果?

我在要在开发模式,调试core里面的代码,然后更方便看到结果

现在的情况是我修改core里面的代码无法验证结果