public static File getDebugFileDirectory() {

		if (debugDirectory != null) {
			return debugDirectory;
		}

		// ghidra.test.property.report.dir
		// Possible Values:
		// server        {share dir}/reports/{type}/{branch}/{date}/
		// local gradle: {repo}/Ghidra/{module}/build/JUnit/reports
		// eclipse:      {repo}/Ghidra/{module}/bin/
		// build:        unsupported

		// we add to the above directory a single dir value of 'debug'

		String debugDirName = "debug";
		String dirPath = System.getProperty(GHIDRA_TEST_PROPERTY_REPORT_DIR);
		if (dirPath != null) { // running from gradle
			debugDirectory = new File(dirPath, debugDirName);
		}
		else { // running from Eclipse

			// Setup the dir to be something reasonable.  In Eclipse, we do not generate
			// reports, nor do we have a build directory.  'bin' is the closest thing to that.
			ResourceFile moduleDir = Application.getMyModuleRootDirectory();
			ResourceFile binDir = new ResourceFile(moduleDir, "bin");
			debugDirectory = new File(binDir.getFile(false), debugDirName);
		}

		return debugDirectory;
	}
Returns the directory into which tests can write debug files, such as files containing print
statements or image files.

<P>
This is not a temporary directory that will be deleted between tests, which is useful in that
the debug files will persist after a test run.

<P>
Examples of this directory:
<UL>
<LI>server: {share dir}/junits.new/JunitTest_version/reports</LI>
<LI>local gradle: {user home}/git/{repo}/ghidra/build/JUnit/reports</LI>
<LI>eclipse: {module}/bin/</LI>
</UL>

@return the directory
Ghidra/Framework/Generic/src/main/java/generic/test/AbstractGenericTest.java