I want to see the image in picture 2.
You cannot use the IDE and the debug protocol with another program at the same time; you have to choose one. If you want to make an app that talks to the camera via its debug protocol, you need to do everything through that.
Here are examples of tools doing this: openmv-projects/tools at master · openmv/openmv-projects · GitHub