I am debugging some code that involves transferring files over a network. I have received the binary data and want to confirm that the file is correct by downloading it an opening it in a viewer relevant to the file format.
In modern development environments, we may not have easy access directly to the file system of the development machine, due to containers, orchestration, sandboxing & security measures, etc. If viewed in the debugger as as string and copied into a file from there, the variable contents may be corrupted in the process.
Is it possible to save the binary contents of a byte[] variable directly from the IntelliJ debugger to a file?
Note I am not asking how to do this from within the Java code of the application I am debugging itself (due to difficulties mentioned above), but asking about ways to do this from the IntelliJ debugger, perhaps via a plugin if necessary.