Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
AhrefsBot, DotBot

Members: 0
Guests: 30
Stats
Files
Topics
Posts
Members
Newest Member
489
3,791
19,644
596
Elwood

Today's Birthdays
There are no member birthdays today.
» 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,917
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 >>