Open jansorg opened 1 year ago
@apotterri are any of these exceptions concerning?
I don't think so, but it's a little hard to tell.
@jansorg Can you rerun this without -Dappmap.debug
set please? The agent actually doesn't pay attention to the value of the property, it only checks to see if it's set. So, -Dappmap.debug=false
is the same as -Dappmap.debug=true
, is the same as -Dappmap.debug
. ;)
Independently of appmap.debug
, you can set appmap.debug.file
to the path for a log file, if that's helpful. If you don't set that, log messages get written to stderr
.
If there are still exceptions shown without appmap.debug
set, those would be of concern.
@apotterri Thanks! Without the log option, there are no exceptions in the log. But the created AppMap remains empty, even though I used code of the AppMap plugin.
Even with com
and org
as packages it remains empty:
name: intellij-appmap
packages:
- path: appland
- path: com
- path: org
appmap_dir: appmap-intellij
Is there a way to let it record all method calls, regardless of the package?
Sorry, you didn't say that your AppMaps were empty. ;)
No, there's no way to make the agent record all calls from any package, though putting the paths com
and org
in appmap.yml
will probably come pretty close. It's almost certain to yield huge AppMaps, so it's probably inadvisable.
So, I guess those exceptions in the original log may indicate a problem after all. I'll need to investigate this myself to figure out why it's failing.
@jansorg I think this should be fixed now. Can you try it again?
@apotterri I tried again. I only got an empty appmap. I've attached the debug log.
Local changes to build.gradle.kts to launch runIde
with the agent attached:
jvmArgs("-javaagent:/home/jansorg/.appmap/lib/java/appmap.jar")
systemProperty("appmap.config.file", rootDir.resolve("appmap.yml").absolutePath)
systemProperty("appmap.debug", "true")
systemProperty("appmap.debug.file", rootDir.resolve("appmap-debug.txt").absolutePath)
systemProperty("appmap.output.directory", rootDir.resolve("tmp/appmap/runIde").absolutePath)
systemProperty("appmap.recording.auto", "true")
I attempted to launch IntelliJ with the agent attached to it.
Custom VM options (
Help > Edit Custom VM Options
):This prints a lot of debug info, errors and exceptions to STDOUT.
Help > Show log in ...
displays the log with STDOUT embedded.Log: appmap-agent.log.txt
IntelliJ info: