While Hagens got through the ninth, Marcell Ozuna's double in the 10th scored Garrett Jones and allowed the Marlins to walk off with a 5-4 win at Marlins Park.
"It's tough to put a pitcher in that spot right there," D-backs manager Kirk Gibson acknowledged.
Said Ozuna, "It was 3-0, then he threw me one strike. Then I heard some of my teammates say, take another one. Then it was 3-2. The catcher went to talk to him. I told them, 'Give me the [pine tar] stick. I put the stick on the bat, and I focused on putting the ball in play, to the middle. I got a line drive."
With the D-backs having played a doubleheader that included extra innings in the nightcap Wednesday night, the bullpen was on fumes and there was little choice.
Jones drew a four-pitch walk to lead off the 10th and Jeff Mathis followed with a single to right to put runners at first and second for Ozuna.
"I just struggled with command," Hagens said. "Kind of trying to hit the corners too much instead of attacking down in the zone and got behind hitters and gave them pitches to hit. I need to do a better job getting back in the zone."
Hagens had the predictable and understandable nerves that come with a big league debut.
"It wasn't really the jog in," he said. "It was the turnaround and look around and get on the mound and throw the first pitch when it really started to kick in. So I had quite a bit of adrenaline in that first inning for sure."
The game began better than it ended for Arizona.
Chase Anderson continued his run of good starts, allowing three runs over six innings. It was the first time in six starts that the right-hander allowed more than two runs.
Anderson said he had a hard time taking any solace in that stretch given Thursday's loss.
"You want to do the best you can to help the team win the game," Anderson said. "That's all that matters in the end. You want to win the game. Going six innings and giving up three runs, that's a good thing to a certain extent. I should have limited the damage a little bit better and not given up a couple of extra runs that could have made it a little easier on the offense, too."
Anderson was opposed by Brad Penny, who was originally drafted by the D-backs and dealt to the Marlins in 1999. This is Penny's second stint with the Marlins, but regardless of what uniform the righty has worn during his long career, he has made a habit of beating the D-backs.
Coming into the game, Penny was 10-3 with a 1.97 ERA in 23 games against Arizona.
The D-backs, though, jumped on him early, scoring a run in the first on a two-out RBI single by Mark Trumbo.
Arizona once again did damage with two outs in the third inning, as David Peralta drove home a run with a triple to right-center and Trumbo brought in Peralta with a single to center to give the D-backs a 3-0 lead.
The Marlins pulled to within 3-2 in the bottom of the third when Donovan Solano and Giancarlo Stanton each drove in runs.
The D-backs added a run in the sixth when Trumbo drew a leadoff walk and scored when Miguel Montero followed with a double off the left-field wall.
With the D-backs up 4-2, Gibson went to setup man Brad Ziegler in the eighth, and the submariner retired the first two batters before issuing back-to-back walks.
That would prove costly, as Adeiny Hechavarria followed with an RBI single to tie the game.
"I just kind of lost the feel for my command a little bit," Ziegler said. "It seems like it's been every other game the last couple of weeks where I just kind of lose the feel. I don't know. It's frustrating. Chase deserved to win tonight. It was one of our better offensive games with all the two-out hits with all the runners in scoring position.
"It's frustrating to give it up that way, two outs and no one on base, walk the next two guys and essentially throw Bradin into a spot that makes his debut extremely tough."