How Can I Debug in LabVIEW EXE File in Local Host PC?

Updated Apr 4, 2019

Reported In

Software

  • LabVIEW
  • LabVIEW Application Builder Module

Issue Details

I have an unknown problem while running an application I built. I think it is a software problem so I want to try debugging. Is there a way to debug the EXE file in Local Host PC?

Solution

EXE files can be debugged. To debug EXE files, you need to make one setting before building an EXE file.
Please refer to figures below.

1. Click Build Specifications » New » Application(EXE) in your project.
2. Move the Main VI to Startup VIs box in Source Files category. Select your Main VI and click right arrow button.

3. Move to Category » Advanced and check Enable debugging.
4. Click Build in your application and make the EXE file.
5. Run the EXE file that you made and check that there are no problems.
6. Open your Project and Click Operate » Debug Application or Shared Library... (Don't turn off the EXE. If you turn off, LabVIEW cannot access the EXE.)
 
7. Write localhost(If you debug in Local PC) in Machine name or IP address tab and click Refresh button. Select your EXE file in Application or Shared library tab. Last, click the Connect button. (If you debug in Target PC, refer to Remotely Debugging Executables in LabVIEW)
8. After that, the front panel and block diagram are open. So you can debug in block diagram. You can use Highlight Execution, Probe etc.
 

Additional Information

LabVIEW 2017 and 2017 SP1 have a bug to find EXE in Application or shared library.