Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 543 Bytes

next_docs.md

File metadata and controls

33 lines (27 loc) · 543 Bytes

Pre-published Documentation

Use GDB from squashctl

Deploy a sample app

kubectl apply -f contrib/language/cpp/demo.yaml

Debug with squashctl

> squashctl
# choose gdb
# choose namespace
# choose pod
# confirm
# (wait)
gdb debug port available on local port 54891.

Now open gdb and tell it to debug the specified port

gdb
# tell it connect to the desired port
target remote localhost:54891
# create a breakpoint
b main # confirm
# continue execution
c 
# stop execution with control-c