How to debug nakama server runtime in IntelliJ IDEA?

There is an introduction on the official website on how to use vscode for debugging, but how to debug in IntelliJ IDEA?

Hello,
Please have a look at this post

I am using TypeScript. Is it still okay?