planetfederal / qgis-geogiglight-plugin

GNU General Public License v2.0
19 stars 9 forks source link

How to build and debug plugin in qgis? #121

Closed tuannvapj closed 3 years ago

tuannvapj commented 3 years ago

Hi everyone, I have reference the document and repository on git https://github.com/planetfederal/qgis-geogiglight-plugin and run successfully. But when I want to edit, update this features to work as particular need. Could you all please tell me "How to build and debug plugin? or their is any document for build and debug" Sincerely

koyo-jakanees commented 3 years ago

Hello @tuannvapj the repository referenced has guidelines on how to build and use this plugin. the required prerequisites for dev debug and user installation in the README.rst. It points out to having a working installation of geogig and for dev or manual build purposes it uses paver. You can checkout the qgis3 branch python3 compatibility

tuannvapj commented 3 years ago

Hello @tuannvapj the repository referenced has guidelines on how to build and use this plugin. the required prerequisites for dev debug and user installation in the README.rst. It points out to having a working installation of geogig and for dev or manual build purposes it uses paver. You can checkout the qgis3 branch python3 compatibility

Hi @koyo-jakanees, appreciate you reply, I just quite not understand and hope you could let me know 1) let's suppose I have clone plugin from github 2) I have run successfully in QGIS application 3) What I want, It should have the way to manage to debug inside code I have cloned ( but you know in the mean time, when I run plugin in QGIS). Now I want to put some break-point with VSCODE or PyCharm - in order to clearly understanding which things are happening inside raw code Target: We need to deep and dive to plug in in the future to develop and support our particular need

Thanks

koyo-jakanees commented 3 years ago

Hello @tuannvapj the repository referenced has guidelines on how to build and use this plugin. the required prerequisites for dev debug and user installation in the README.rst. It points out to having a working installation of geogig and for dev or manual build purposes it uses paver. You can checkout the qgis3 branch python3 compatibility

Hi @koyo-jakanees, appreciate you reply, I just quite not understand and hope you could let me know

  1. let's suppose I have clone plugin from github
  2. I have run successfully in QGIS application
  3. What I want, It should have the way to manage to debug inside code I have cloned ( but you know in the mean time, when I run plugin in QGIS). Now I want to put some break-point with VSCODE or PyCharm - in order to clearly understanding which things are happening inside raw code Target: We need to deep and dive to plug in in the future to develop and support our particular need

Thanks

@tuannvapj responding to the third concern. Depending on your workflow i have collected a few resources/ref docs that might suit your specific workflow, More of a General response.

  1. QGIS docs IDE settings for writing and debugging python plugins you can add scriptrunner3 and/or Remote Debug qgis plugins but the listed two in the docs should suffice
  2. QGIS wiki for debugging C++ plugins using GDB
  3. StackExchange question
  4. Stack exchange QGIS3 plugin
  5. UPDATE: VS Code + Mac OSx gist guide

The links are general guidelines and not to any specific plugin. Using your IDE features for debugging or pdb. I'd highly recommend going through the first one. And hopefully this would be helpful for any future plugins you intend on developing

tuannvapj commented 3 years ago

@koyo-jakanees Thanks so much. I use a Remote Debug in Visual Studio Code (follow the https://gist.github.com/AsgerPetersen/9ea79ae4139f4977c31dd6ede2297f90) to Debugging.