Debug Bitbucket

HelIo all,

I want to connect IntelliJ to Bitbucket Server (5.6.2) for debugging but something goes wrong. There are no catalina.bat (I use Win10) and server.xml files so just don’t know what is the default port and how to change it (as 8000 in Jira, for this port there is an error:
"Error running LOCAL: Unable to open debugger port (localhost:8000): “Connection refused: connect”, I tried 5005 too but result is the same).
I also tried to start application by using ‘start-bitbucket.bat -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n’ but there is the same problem - Bitbucket starts correctly but can not connect the dubugger from IDE.
What is the default port and where could I find it? Should I start Bitbucket in ‘debug mode’ (like ‘catalina jpda run’ in Jira) or just by \bin\start-bitbucket.bat, if first option - how?