Intellij open a project file as non-project file on debugging

Viewed 141

If I start debugging on my IntelliJ, the IDE open the file which I want to debug in a new tab as a non-project file, and I don't know how I can solve this.

I switched the OS from Ubuntu 18.04 to 19.04 and reinstalled IntelliJ but the .idea folder in the project is the same, so all marked folders should be the same as well. On Ubuntu 18.04 everything worked with debugging.

Can anyone tell me how I can solve this problem?

Here is a image:

https://ibb.co/BP6LwFQ

2 Answers

I found the issue. I've a sym-link from the HDD where the project is located to my home folder and open the project from the home folder, so may the ide or debugger gets the real path and think that the file isn't a project file >.<

Related