This may apply across languages in intellij, though my example is about Java. I have a breakpoint at the line after this one:
currentOut = new PrintStream(new FileOutputStream("tmp.output"));
The variables tab shows:
I have navigated down charOut
, out
, and testOut
- nowhere is a path to file tmp.output
shown. In the debugger, how can I see where this file got created?
CodePudding user response:
It will be in the current directory of the Application. You can get it in the debugger by executing this inside evaluate expression box:
new java.io.File(".").getAbsolutePath()