I am new to embedded coding outside of Arduino, so I need a lot of hand holding. I made a custom board with just a STM32 chip (STM32L082) and a LED. I am trying to debug it using GDB (I hear that's the next thing after using printf's) and I know that I can flash code on it successfully (used JFlash-Lite and can have it toggle LED at different frequencies).(on MacOS Catalina)
$ arm-none-eabi-gdb ... (gdb) target remote localhost:2331 localhost:2331: cannot resolve name: nodename nor servname provided, or not known localhost:2331: No such file or directory.
And that's where I get stuck. I noticed that the LED stops blinking when JLink says it is connected, so I guess the program is pausing properly. I get the same issue with STM32CubeIDE as well.
Is there some configuration setting I'm missing and/or file I'm supposed to be putting somewhere? What should I try next to debug?