#Trying to get gdb debugger to work in my cmd

78 messages · Page 1 of 1 (latest)

uneven carbon
#

'gdb' is not recognized as an internal or external command, operable program or batch file.
already add it tothe path :thonk:
Am i doing something wrong?

frosty plumeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

#

@uneven carbon

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

golden jetty
#

restart your cmd @uneven carbon

uneven carbon
#

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\MinGW\bin;c:\mingw\bin\gdb.exe;C:\Program Files\gdb-14.1;C:\Program Files;C:\Users\Jay\AppData\Local\Microsoft\WindowsApps;

uneven carbon
#

nothing :/

golden jetty
#

try type c:\mingw\bin\gdb.exe in cmd

uneven carbon
#

The system cannot find the file specified.

#

I am able to compile my .c files, but I want to use the debugger and I don't what I am doing wrong : /

golden jetty
#

Can you check if gdb.exe is located at that place

#

in file explorer

uneven carbon
#

I also checked manually, it is not there POGGERS

golden jetty
#

check in file explorer

#

you can't dir a file as well

#

just go and check there

uneven carbon
#

where is it?

#

I didn't install then?

golden jetty
#

possible

uneven carbon
golden jetty
#

is it in there

uneven carbon
golden jetty
#

let me link you where I got my mingw

uneven carbon
#

thank you thank you!

golden jetty
#

mingw online installer

#

I used that thing

uneven carbon
#

Thank you!!

#

Ok after the installation what? Do I add it to the path?

golden jetty
#

yeah

#

add the bin of the install dir into bath

#

gdb and gcc should be inside

uneven carbon
#

okok

frosty plumeBOT
#

@uneven carbon Has your question been resolved? If so, type !solved :)

uneven carbon
#

is this running always in root @golden jetty ?

golden jetty
#

yeah

uneven carbon
#

So basically do i need to use this cli instead of my cmd?

golden jetty
#

no

#

you should be able to use cmd

#

check this dir

#

this is in my enviornment variables

#

PATH

uneven carbon
#

nothing

golden jetty
#

wtf

uneven carbon
#

dude is weird

golden jetty
#

are you somehow excluding it from your download

#

do you want my gdb binary

uneven carbon
#

idk tbh

#

no, that's totally fine

#

at least i am able to run it

#

outside

golden jetty
#

this is very bizzare indeed

uneven carbon
#

do you have any documentation besides their offical?

#

official?

golden jetty
#

regarding?

uneven carbon
#

how to use

golden jetty
uneven carbon
#

this shit is weird

golden jetty
golden jetty
#

type r

#

r will run

#

then up will go up a stack frame

#

b <linenumber> for a breakpoint

#

(i think)

#

c to continue execution

#

p to print out variables

uneven carbon
uneven carbon
#

I will try to find the solution to add it to my path

#

but this works for now

#

thanks a lot for the time homie!!! @golden jetty ducky_concerned

golden jetty
#

👍