Car will not stay running
a fuel problem for sure, check fuel pump fuse, filter or line pressure at Schrader valve on fuel rail
Fuel pump is working, gas flows out at the out side of fuel filter. Where is Schrader valve ?
at engine top at fuel tube rail same as tire valve ,may have a cap screwed on it
fuel at side of filter? then I bet it makes it to the fuel rail , now were talking an injector pulse not happening, that pulse comes from the computer by way of a few sensors sending a proper signal to it. and powered up by way of a fuse or two and a relay ck. them first! fuel pulse signals would come from certain sensors like crank,and cam, but so does the spark and timing and you got that. unplug an electric injector jack and test light for 8 volt pulse while cranking, should blink! VOM volt, ohm meter should read 8 to 12 volt at pulse jack. if very low resistance in wiring from PC means corroded 60 pin connector at computer or fried or corroded harness wire coming to injectors .PSI fuel line is tested at Schrader, some cars need 57 to 60 PSI or will not spray fuel at all.
I'd check cylinder compression with either a compression or leak down tester.
Looking for a Used Legacy in your area?
CarGurus has 15,968 nationwide Legacy listings starting at $1,100.
Search Subaru Legacy Questions
Subaru Legacy Experts