unable to view debug window in intellij

Answered

I'm unable to view debug window in intellij (View > Tool Windows > Debug). I simply want to set a break point and step through the program - I've tried setting breakpoints and then running in debug (Run > Debug Main; Run > Debug). None of the tutorials on youtube, etc. have a simple answer. Any suggestions on how I can do this would be much appreciated. Using a mac, running intellij idea 2017 ultimate. Kind regards, Jon

0
8 comments

What Run/Debug configuration do you use? Please attach the screenshots.

Does the app start at all?

Any errors in idea.log (https://intellij-support.jetbrains.com/hc/articles/207241085)?

0
Avatar
Permanently deleted user

As far as I'm aware, I'm just using the default config. Yes, the app starts and runs.

Log: (moved to https://pastebin.com/raw/CTX6CWGf). Please don't post large logs in the forum.

0

Do you have the Main class in the specified package? See http://stackoverflow.com/a/42660624/104891.

0
Avatar
Permanently deleted user

Okay, I looked at the article you linked to. I do have the main class in the package.

 

0

Your file has errors, until fixed you can't compile and run it.

0
Avatar
Permanently deleted user

Okay. I understand that my file has. I'm trying to debug it (in Eclipse I could set breakpoints and step through to see where the errors were occurring). I can't seem to be able to get the debugger to work.

0

Until you fix the errors in the file, you can't debug it.

If you think that the file has no errors, please share the sample project: https://intellij-support.jetbrains.com/hc/articles/206869619.

Make sure project JDK is configured correctly.

0
Avatar
Permanently deleted user

Mr. Baranov,

I found the error. I had extra curly brace at the end of the program. :-/ (forehead slap)

After removing the error, debugger is working fine.

- Jon

0

Please sign in to leave a comment.