# smartide_itop.ide **Repository Path**: itop-cn/smartide_itop.ide ## Basic Information - **Project Name**: smartide_itop.ide - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-07 - **Last Updated**: 2021-12-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ide.yaml使用说明 ## 安装smartide到iTop项目 ``` git submodule add https://gitee.com/itop-cn/smartide_itop.ide.git .ide ``` ## 安装smartide-cli > 详情请见[安装手册](https://smartide.dev/zh/docs/quickstart/) ## 使用远程vm启动smartide - 需要保证vm用户环境:建议Ubuntu20+、Git、Docker、docker-compose命令 ```bash smartide start --host 20.198.250.255 --username {host-username} –password {host-password} --repourl https://github.com/SmartIDE/iTop --branch develop --filepath .ide/.ide.yaml -d ``` ## 启动Apache服务 ```bash # 设置Git权限 git config core.filemode false # 设置访问权限 chmod -R 777 /home/project # 启动 apache2ctl -k start ``` ## 安装PHP依赖插件 > 在弹出浏览器中安装如下插件 - PHP Extension Pack ![php_extension_pack.png](img/php_extension_pack.png) ## 调试 ### 启动Xdebug调试 ```bash cd / && ./start-xdebug.sh 9003 openvs ``` ### 浏览器插件调试方式:Chrome Xdebug helper扩展安装及设置 - 安装参考:https://github.com/mac-cain13/xdebug-helper-for-chrome - 设置: ![chrome_xdebug_install.png](img/chrome_xdebug_install.png) - 开启: ![chrome_xdebug_debug.png](img/chrome_xdebug_debug.png) ### URL参数方式 - URL中加入?XDEBUG_SESSION=openvs参数,如: `http://localhost:8080/pages/UI.php?XDEBUG_SESSION=openvs` ### 设置断点 - setup/wizard.php ![setup_wizard_breakpoint.png](img/setup_wizard_breakpoint.png) ### 启动调试 ![debug.png](img/debug.png) ### 触发断点 - 访问:http://localhost:8080/ - 触发open vscode断点 ![debugging.png](img/debugging.png)