<div dir="ltr">Thank you very much. I'm compiling from the source code.<div><br><div>Another question please about the proper location for the "-g" option, because I see options like CFLAGS="-g" in slurm/configure file, and I wonder if I should add the "-g" to  some other locations?</div><div><br></div><div>Regards</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 21, 2023 at 12:47 AM Davide DelVento <<a href="mailto:davide.quantum@gmail.com">davide.quantum@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Have you compiled slurm yourself or have you installed binaries? If the latter, I speculate this is not possible, in that it would not have been compiled with the required symbols (above all "-g" but probably others depending on your platform). <div><br></div><div>If you compiled slurm yourself, and assuming you have included all the necessary symbols (or will re-compile appropriately and replace the binaries and libraries), then it'd be like debugging any other thing: just make sure to point gdb at the location of the source code, and then follow any of the gazillion tutorials around about gdb. If you are not familiar with gdb already, I strongly recommend that you start with some simpler program before attempting something as big as slurm.</div><div><br></div><div>Have a great weekend</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 20, 2023 at 9:30 AM mohammed shambakey <<a href="mailto:shambakey1@gmail.com" target="_blank">shambakey1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi<div><br></div><div>Is it possible to debug "sbatch" itself when submitting a script? For example, I want to debug the following command:</div><div>sbatch -Mall some_script.sh</div><div><br></div><div>I don't want to debug the "some_script.sh". I want to debug the "sbatch" itself when submitting the "some_script.sh". I tried to use "gdb" but I'm not an expert, and it didn't work for me. I wonder if anyone did something like this? and how?</div><div><br></div><div>Regards</div><div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mohammed<br></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mohammed<br></div>