Skip to content

u/Da_Viper

In this archive from Jan 2020 to Jun 2023

19
posts
47
comments
1
media
155
score
2 saved before deletion

If you use CMAKE to build you have to add this flag .

-DCMAKE_BUILD_TYPE=Debug.

If using make only add this to the CXXFLAGS i.e

CXXFLAGS = -Wall -g

If using gcc complier add the flags -g -Wall

Once complied you can there are two ways to debug it

Start with the debugger .

Use gdb path/to/the/output file

Attach to a running processes

First start the program

Get the process id with

ps -aux | grep $nameofprogram

The first number is the pid.

Then start gdb.

After gdb has started enter attach $theprocessid

If you get permission not supported run this in the terminal

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

Then try again

OR just use a texteditor/ide that support debugging like vscode,clion,atom,eclipse

1 points

The question is asking for a solution, not recommendation of software. Op probably already knows of OBS,

You should recommend another software when. The one discussed is deprecated, outdated. Or doesn't support the discussed feature or the like .

It like asking my phone is not turning onhow do I fix it ?

and you answer.

Is that iPhone ? Get Android.

11 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.