()
| 12 | import { GDBDebugSession } from './gdb'; |
| 13 | |
| 14 | function getLogPath() { |
| 15 | try { |
| 16 | const tmpDirName = os.tmpdir(); |
| 17 | const fsPath = path.join(tmpDirName, 'cortex-debug-openocd.log'); |
| 18 | return fsPath; |
| 19 | } |
| 20 | catch { |
| 21 | return ''; |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | let firstLog = true; |
| 26 | let doLog = false; |