There were more than a few pained expressions worn by gubernatorial candidates during Tuesday night’s forum dedicated to issues affecting Massachusetts’s LGBTQ community, mostly after Scott Lively, an anti-gay candidate running to “advance a biblical world view,” responded to questions.

But state Treasurer Steve Grossman, who is a Democrat from Newton, was actually in physical pain, said campaign spokesman Chandra Allard. Grossman was in the throes of passing a kidney stone, something often compared to the pain of childbirth, during the 90-minute debate, she said.

The forum was held by MassEquality and WGBH at the Boston Public Library in Copley Square and included eight gubernatorial candidates -- the five Democrats and three independents, all of whom showed their support for the lesbian, gay, bisexual, transgender, and queer (LGBTQ) community except for Lively.