I just spent the entire day trying to get the Remote Debug feature working with my iMac running the IDE (2018.1.1) and the intended target a Raspberry Pi 3. Most of that time was trying to solve the “Cannot connect to the debugger Since we could not locate the target IDE to start a debug session, this application will now exit” message mystery.
I tried every suggestion I could find on this forum as well as general internet search (perhaps I missed one), only to be continually thwarted by the message. Grasping at straws, I finally turned off the wifi (I use three networks adapters that are on different subnets) on my iMac, and behold the debugger worked as advertised with no message. Apparently, the debugger would select the network that the Pi was connected to (wifi on the Pi, but wired ethernet on the iMac) when it downloaded the app, but would not listen on that network when the debugger engaged.
I had also tried to the the iMac’s network services order to favor the ethernet connection, but that didn’t help. The subnets are xxx.xxx.0.xxx (wifi), xxx.xxx.1.xxx (USB3 to ethernet), and xxx.xxx.2.xxx (wired ethernet). The order I selected was ethernet, wifi, USB.
My question for those on this forum is, is there a way to set the IDE debugger to listen on the same network (subnet) that it used transferred the application to the target? Alternatively, is there a way to set the debugger to listen on a specific network?
Thanks in advance for any insights.