When the cpu encounters a WFI instruction, it basically goes into a simple low power mode, and will no longer execute any instructions until an interrupt is triggered, at which point it will wake up again and enter the appropriate interrupt handler. Thus whilst in WFI "mode", waiting for an interrupt to happen, your application has basically stopped executing.
From a debug point of view, depending on your debug tools, it is possible that your debugger might actually time out the debug connection whilst the cpu is in WFI "mode" if an interrupt is not triggered within a certain timeframe. But in most cases, your system will probably have at least one interrupt triggering on a regular enough basis (such as Systick, or another timer), for the WFI to effectively be "invisible" from the debug point of view.
Regards,
MCUXpresso IDE Support