Login
User Name:

Password:



Register

Forgot your password?
void nanny_get_new_race -- comm.c
Mar 13, 2025 7:08 am
By Elwood
IPv6
Jan 25, 2025 10:45 pm
By Samson
mudstrlcpy and mudstrlcat
Jan 18, 2025 5:23 pm
By Samson
I3 and IMC
Jan 17, 2025 9:35 pm
By Samson
AFKMud 2.5.1
Jan 17, 2025 2:22 pm
By Samson
SWFotEFUSS 1.5.3
Author: Various
Submitted by: Samson
SWRFUSS 1.4.3
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.8
Author: Various
Submitted by: Samson
AFKMud 2.5.2
Author: AFKMud Team
Submitted by: Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
Users Online
Anthropic, DotBot, Bing, AhrefsBot, GPTBot, Bytespider

Members: 0
Guests: 4
Stats
Files
Topics
Posts
Members
Newest Member
507
3,812
19,722
591
TracySpencer

» SmaugMuds » General » Coding » So...I've forgotten how to de...
Forum Rules | Mark all | Recent Posts

So...I've forgotten how to debug
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Aug 15, 2016 9:58 pm   
Go to the top of the page
Go to the bottom of the page

tphegley
Magician
GroupMembers
Posts176
JoinedMay 21, 2006

 
I haven't coded or ran a mud in about 5 years now and I've forgotten the command to debug my game. I went to look at mudbytes for any hints but I about died from the eyebleed that the site has turned in to.

I remember there was a command that when the game crashed it would stop, and I could step in to the next line of code and see what was causing the issue. The directions may have been on Nick Gammon's website. I'll go look over there as well.

I remember using valgrind for memory leaks and would like to have a decent command for that again. I think I had a copy/paste of the valgrind that I was using at the time, but must have lost it along the way.

Any help is appreciated.

Post is unread #2 Aug 17, 2016 5:33 pm   
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,992
JoinedJul 26, 2005

 
that would be running it in gdb instead of using the startup script and this is the one i have for valgrind

valgrind -v --tool=memcheck --leak-check=yes --show-reachable=yes --db-attach=yes --num-callers=10 --track-fds=yes --suppressions=src/specials/vg_suppress.supp ./LOP 2700

of course change the stuff as you need thats just what I used lol

Pages:<< prev 1 next >>