-
I would like to help with the development of Netbox plugins like Netbox-qrcode. I myself come more from C# .Net and Visual Studio, but I would like to be able to debug and thus observe the qrcode plugin in Visual Studio code. I get the docker-compose container started, but I don't have the experience on how to properly configure the debugging files (launch.json and tasks.json). I've tried a few things but always get error messages in the specified *.py files. Does anyone have experience with this and know what I have to select in vscode under Run --> Add Confiuration or how I have to configure the launch.json and tasks.json? Do I perhaps also need a docker-compose.debug.yml? My Setup: My current process:
Create some basic elements. Just click on Add and insert something into the mandatory fields. e.g. Test #To create the debugging configuration files I had done the following:
tasks.json changed
Info: I found the plugin here "/source/netbox_qrcode" But it doesn't matter whether I take a py file from the qrcode folder or one from the Netbox folder. I can't get into a clean debug mode without an error message. I hope someone has the experience how to debug something like this, so that I can call the device page and debug the qrcode utilitys.py file. Many thanks for any help. I have no idea what else I could do. I would like to understand it so that I can help better in the future. Either I'm doing something wrong or I don't know which py file to start with. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
No idea? |
Beta Was this translation helpful? Give feedback.
-
Is there no one who develops a Blugin via Docker Compose? It works quite well with the Cocker Compose. But I get it started in debug because something is always missing... |
Beta Was this translation helpful? Give feedback.
-
I can't believe I got it :D |
Beta Was this translation helpful? Give feedback.
I can't believe I got it :D
I'll create another empty VM and set everything up step by step so that others can also benefit from it.
I will then report here:
netbox-community/netbox-qrcode#76