03-09-2022 06:16 AM
Hi,
I seem to be having issues with debugging remote application and I am not sure what could be causing this.
I followed these instructions for setting up the exe to allow remote debugging:
Remotely Debugging Executables in LabVIEW - NI
When using the 'Debug Application or Shared Library' window, I can find the exe on the remote machine, but when trying to connect to it, the connection hangs (see screenshot below). I cannot cancel the connection, close the window or use labview - I have to stop the remote application through task manager (closing through 'X' does not fully close it), after which I can use labview as normal on the host machine
The application itself on the remote machine seems to stop as well after attempting remote debug. I can press buttons but they don't do anything. If I then restart the application, it works as expected.
I then tried doing the same thing on localhost with the exe open locally. But I get a generic "Failed to connect to remote application".
I'm using LabView 64-bit 2021 SP1.
I also checked if the port was working by typing http://localhost:3580/dumpinfo? into the browser. Everything seems to be ok here as well, as far as I'm aware.
Has anyone come across this before?
Thanks very much for your time.
03-10-2022 03:16 AM - edited 03-10-2022 03:16 AM
Hello, RT_Instron. What hardware do you use?
03-10-2022 03:21 AM
I have the exact same issue. LV2020 SP1 works but not 2021 SP1.
http://localhost:3580/dumpinfo? works
Turning firewall off doesn't help.
If I create an empty test VI and build it with debugging enabled and connect to it I get:
I have followed this: Remotely Debugging Executables in LabVIEW
I
03-10-2022 03:58 AM
Ok, Can you show me your Project Explorer?
03-10-2022 04:17 AM
Do you want to debug from PC the Real-Time Application, or you want to debug from one PC, to another PC project?
03-10-2022 05:58 AM
I checked with LabVIEW 2020 and LabVIEW 2021, It works. Now I am downloading LabVIEW 2021 SP 1 for test in this version.
03-10-2022 06:01 AM
03-10-2022 06:42 AM
Thanks for getting back to me.
I'm trying to debug from one PC to another PC. So in terms of hardware, there's no additional NI hardware involved.
I tried doing the same thing as thols where I created a new project with a really simple VI with a while loop and set up the build spec to enable debugging. But I get the same result as in my original post.
Trying with exe on localhost: "Failed to connect to remote application"
Trying with exe on external computer: hangs on "Downloading NI_FileType.lvlib" until the remote exe is forced to exit.
Hopefully that helps. Please let me know if there's any info I can provide to diagnose the issue.
03-10-2022 06:46 AM
I tried remote debugging in LabVIEW 2021. It works great. Now I am downloading LabVIEW 2021 SP 1 for checking.
03-11-2022 01:21 AM
Hi, I tried on LabVIEW 2021 SP1. The problem occurred. The first time I couldn't find the application, the second time couldn't connect.