wkentaro / labelme

Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).
https://labelme.io
Other
13.63k stars 3.42k forks source link

[BUG] Running debug mode in VS code #875

Open DocVi opened 3 years ago

DocVi commented 3 years ago

I am trying to run it in debug so I can step through the code and make changes easily to contribute to this repo. I am using VScode. As an example, I put a breakpoint in app.py in the def for opendir. I ran the main.py file in debug which creates the UI and then click the opendir icon but it does not stop at the breakpoint aka the app.py is not attached. Here is a gif: debug

How can you attach it then so that i can step through the code?

Would be nice to have information in the readme file so people can easily contribute.

Thanks

Vincent

SunlifeV commented 2 years ago

I guess you have installed labelme with pip. The labelme used in the codefrom labelme import xxxis not your code, but the pip package used. So the code can't run here.