I am trying to make Remi Rousslet's custom_lint package debuggable so I can debug my lint package. As far as I am aware, custom_lint is built with analyzer_plugin, and to be able to debug my package, I need to attach the debugger to a provided VM service URI outputted in a log file. The log file doesn't have anything of the sort, and when I asked Remi for help, he told me: "Could be a bug in the reporter, but it works for me".
If I understand well, since the lint package is a plugin to the analyzer, all I need is the current process VM URI of the dart analysis server in VSCode. Is there any way I can get my hands on that?
What I tried:
running
dart --enable-vm-service --pause-isolates-on-start path/to/your/dart-sdk/bin/snapshots/analysis_server.dart.snapshot --sdk path/to/your/dart-sdk
Issue with that is that it creates a different process.
adding the lines "dart.vmServiceLogFile": "W:/DevXpress/Logs/{name}",
"dart.analyzerInstrumentationLogFile": "W:/DevXpress/Logs/analysis.log"
to my settings.json
The log files contain a load of information, but nothing that resembles what I'm looking for. I've provided one of those log files in this discussion.