No problem, we can help you get it to work.
Each Linux command executed by VisualGDB runs in a separate shell instance, hence the ‘ulimit’ command specified via the pre-debug steps won’t affect the program (as it will run in a separate shell).
Instead, please try changing the GDB command on the Debug Settings page to the following:
- Command: ulimit
- Arguments: -s <new size> && gdb –interpreter mi $(TargetPath)
- Start debugging with: “run” command
This will launch gdb in the same shell instance as the ulimit command, so it will take effect as desired.