-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging Docker Compose for Netbox-qrcode #76
Comments
So I think I'm on the right track, but apparently there's something I need to do to get Netbox to load during debug. I hope you use vscode :) and maybe you have the right .vscode files for me. So the files launch.json and tasks.json which are necessary for debugging. Because that would make my life easier to help with the development of the plugin. I haven't done anything with Python yet, but if you can debug something it's a lot easier.
I have created the following folder in the root folder: File: launch.json
File tasks.json:
|
I know you have little time, but I wanted to ask you if you use your development system with vscode and you also use the debug in vscode? If so, I would be happy if you could send me your project, e.g. via ZIP, so that I can see what I am doing wrong? Mail: Mister . Hempel at Gmail . com |
No one has any ideas? File: launch.json
File tasks.json:
|
Maybe someone can save me from my torment. ;( That is apparently also wrong. I can get to Settings.py but it cannot find Configuration.py because it is missing in the container. I also only have one container, as the Docker file is apparently not being processed. That was my attempt before the last post. File: launch.json
File tasks.json:
|
I think I've now taken a step in the right direction, but it still doesn't work :D :( I found this post. launch.json
Tasks.json
docker-compose-debug.yml
vsCode Terminal:
Now everything starts and the start also looks different in the vscode terminal view (more colorful). I can log on to http://localhost:8000/. But there is no waiting at breakpoints. If I now click on Run and Debug (play symbol) I get this: |
Memo to myself. Links where I had asked something about it: microsoft/debugpy#1618 (Current location with a working solution. Until I integrate it into the plugin.) |
I know this is more of a general knowledge, but I'm a C# / Visual Studio .Net kid.
I would like to develop one or the other to the plugin, but I don't know how to debug this.
I can get Docker Compose to work and with the help of your Github code I can always get it to start as the current Netbox version.
I also discovered a video on how to get Docker debugged with Python.
https://www.youtube.com/watch?v=jtBVppyfDbE
However, I don't understand how to get the debugging to work in the downloaded Gitub project.
Can you perhaps make a short video or explain this?
THX
The text was updated successfully, but these errors were encountered: