I've been using this loopback application in my IntelliJ IDE. I set a breakpoint at the promise in calculator.controller.ts, where the code looks like this:
@get('/multiply/{intA}/{intB}')
async multiply(
@param.path.integer('intA') intA: number,
@param.path.integer('intB') intB: number,
): Promise<MultiplyResponse> {
const response = this.calculatorService.multiply(<CalculatorParameters>{
intA,
intB,
});
return response;
}
When I run the debugger, it stops at two breakpoints. The first one is here:
https://i.stack.imgur.com/TEBVu.png
The second breakpoint occurs here:
https://i.stack.imgur.com/b9I6z.png
At both points, the Promise status is pending
. How can I configure the debugger to display the value when the Promise status changes to fulfilled
?