BartmanAbyss / vscode-amiga-debug

One-stop Visual Studio Code Extension to compile, debug and profile Amiga C/C++ programs compiled by the bundled gcc 12.2 with the bundled WinUAE/FS-UAE.
GNU General Public License v3.0
314 stars 39 forks source link

getSymbols hangs #67

Closed Muzza closed 3 years ago

Muzza commented 3 years ago

Hi, Whilst experimenting with this extension my program failed to launch with no error message. Debugging the extension found that it was getting stuck in getSymbols. It seems my program was producing a lot of symbol output and the call to childProcess.spawnSync has a limit of how much it will read before just killing the process. Adding a 'maxBuffer' parameter fixed it: const objdump = childProcess.spawnSync(this.objdumpPath, ['--syms', '--demangle', this.executable],{maxBuffer: 1024 * 1024 * 128});

BartmanAbyss commented 3 years ago

Thanks for the fix. This was the only place that was missing the maxBuffer option ;)