Using HWD with Altera
This is the Altera preferences box.
Hardware Debugger Tool uses Quartus as the main tool for Altera compilation. First you need to choose the suitable version from the drop-down box (or locate it manually), then click on the suitable FPGA family and component.
Now all is set, you can click 'Save' and start using HWD.
In case there's a reference in the code to a library (like: use work.mypackage.all) or to an instantiation, Quartus will disregard this reference. Modelsim and Vivado will not, so, you would probably get a compile error, saying Modelsim (or Vivado) could not find the referenced package (or component).
Take that into consideration when choosing your software.