What to do if debugger doesn't work as expected?
Please send us logs to investigate the problem. Do the following:
- go to Help | Diagnostic Tools | Debug Log Settings
- add #com.jetbrains.cidr.execution.debugger there
- reproduce the problem (mind, this step should happen after you added the settings above)
- collect debug logs, logs can be found in Help | Show Log in <File Manager>
- send logs to us via submitting a request here and attaching log files.
Note, logs might contain private user's information:
- source file names and paths,
- pieces of source code / individual lines which breakpoints hit at,
- stack traces with names of functions and their addresses in memory,
- variables with their types, values, members and pointer addresses,
- watches and expressions requested to be evaluated and the evaluation results,
- fragments of disassembly and process memory when the corresponding views are enabled,
- program output (stdout and stderr) shown in the console view.
Update: If you have a timeout problem, you can also try and increase the timeout value.
Please sign in to leave a comment.
Recently we've published CLion 2016.2 EAP build, which includes major changes in GDB and LLDB drivers and addresses such problems as:
Please, find more details in our blog post.
This still happens with attach to process GDBs.
It will be a good idea to write exactly this mini-tutorial as it is in CLion.
For example there is no "Help|Show Log" option, but "Show Log in File Manager"
Tau, what is not clear from the instruction, except for the path to find logs in the menu (which differs for every platform, so I guess Show Log was enough to get it, but could extend)?
For example "Help | Configure Debug Log Settings" does not exist, looked for it for 30seconds, I searched it in another mensu, because I was expecting to start with "C" from "Configure". But in CLion it's "Debug Log Settings" :)
Thanks Tau. Seems the name in the menu changed after the article has been published. Updated here.
my debugger is not responding at all... impossible to work (see https://youtrack.jetbrains.com/issue/CPP-10071). Tried this to see what's happening in the log, but I can't find any useful info... any help would be much appreciated!
I am currently having the same problem with a Grails project i.e. "step over is treated as a step into".
The debugger steps into conditional blocks when it should not, even, if 1==2.
Same issue with intellij 2018.3, I tried with jdk 1.8u202 1.8u201 1.8u192
This happens with IntelliJ Ultimate 2019 version as well.I find that it happens for a maven configuration. If I happen to run the spring boot app with Spring boot configuration (not as MAVEN ) then it works fine. But I wanted to make sure that I can run as maven configuration since that is the one I will use in my container. Is there a solution to it. ?
Please mind this is a FAQ on CLion IDE. Contact IntelliJ IDEA support for issues in it. They will be glad to help.
This is what I get.
2021-01-31 18:26:47,292 [25370029] INFO - rationStore.ComponentStoreImpl - Saving appFileTypeManager took 26 ms, TodoConfiguration took 12 ms
2021-01-31 18:26:47,308 [25370045] INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2021-01-31 18:26:47,313 [25370050] INFO - j.compiler.server.BuildManager - Using preloaded build process to compile /Users/ajro/IdeaProjects/ADS
2021-01-31 18:26:47,453 [25370190] INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 158 ms: 0 min 0sec
2021-01-31 18:26:47,594 [25370331] INFO - s.CompilerReferenceServiceBase - backward reference index reader is opened
2021-01-31 18:26:47,772 [25370509] INFO - ij.execution.JavaExecutionUtil - Agent jars were copied to /Users/ajro/Library/Caches/JetBrains/IdeaIC2020.3/captureAgent
2021-01-31 18:26:47,947 [25370684] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /Applications/IntelliJ IDEA CE.app/Contents/plugins/java/lib/jps-launcher.jar
2021-01-31 18:26:48,040 [25370777] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2021-01-31 18:26:48,040 [25370777] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2021-01-31 18:26:48,040 [25370777] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2021-01-31 18:26:49,215 [25371952] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: An illegal reflective access operation has occurred
2021-01-31 18:26:49,215 [25371952] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil (file:/Applications/IntelliJ%20IDEA%20CE.app/Contents/lib/util.jar) to method java.util.ResourceBundle.setParent(java.util.ResourceBundle)
2021-01-31 18:26:49,215 [25371952] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
2021-01-31 18:26:49,215 [25371952] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2021-01-31 18:26:49,215 [25371952] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: WARNING: All illegal access operations will be denied in a future release
2021-01-31 18:26:52,988 [25375725] WARN - .diagnostic.PerformanceWatcher - UI was frozen for 5222ms, details saved to /Users/ajro/Library/Logs/JetBrains/IdeaIC2020.3/threadDumps-freeze-20210131-182652-IC-203.6682.168-Unsafe.park-5sec
2021-01-31 18:27:04,222 [25386959] INFO - rationStore.ComponentStoreImpl - Saving Project(name=ADS, containerState=COMPONENT_CREATED, componentStore=/Users/ajro/IdeaProjects/ADS)RunManager took 12 ms
Hi Anastasia, sometimes I cannot share some things that you mentioned above, especially "source file names and paths", how can I avoid this? I am trying to delete them manually sometimes or i won't submit at all.
This is not very clear, what are the "debug" logs. Every log is a debug log? I have 4 files there, for example...Should I submit the latest one, because of file rotation? thanks
Logs have different levels of verbosity, and by default, the DEBUG level is turned off as too verbose. Enabling logging through Help | Diagnostic Tools | Debug Log Settings turns on the DEBUG level for the specified categories. The category in question - #com.jetbrains.cidr.execution.debugger - corresponds to the debugger subsystem.
The log files (idea.log, at least) rotate indeed. We usually only need the last one, named just idea.log; you may also check the modification timestamp of the file.
The logs about the debugger subsystem indeed mention source file names, variables, their values, etc. I understand this can be inconvenient, sorry about that. If it's not too much of a hassle masking the sensitive pieces yourself, the redacted log is still helpful usually.
Thank you Eldar, maybe some of this info should be written in the article, for me it was not very clear what the debugger log is, but that's just the normal log... Thanks