Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Get call stack through lua

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Mon Sep 28, 2020 8:42 am    Post subject: Reply with quote

use debug:
debug.traceback or
debug.stacktrace or
debug.info or
debug.sethook

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
RECORDER
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 28 Sep 2020
Posts: 3

PostPosted: Mon Sep 28, 2020 9:14 am    Post subject: Reply with quote

Corroder wrote:
use debug:
debug.traceback or
debug.stacktrace or
debug.info or
debug.sethook


Sorry for non full question: stack trace for assembler debug

it looks like debug.traceback return local lua stacktrace:
stack traceback: [string "return debug.traceback()"]:1: in main chunk [C]: in function 'pcall' C:\Program Files\Cheat Engine 7.1\autorun\CEConnect.lua:94: in function 'runcode' C:\Program Files\Cheat Engine 7.1\autorun\CEConnect.lua:115: in function <C:\Program Files\Cheat Engine 7.1\autorun\CEConnect.lua:107>

debug. functions:
{
["upvalueid"] = "func",
["getuservalue"] = "func",
["getmetatable"] = "func",
["setupvalue"] = "func",
["getinfo"] = "func",
["upvaluejoin"] = "func",
["setlocal"] = "func",
["getupvalue"] = "func",
["debug"] = "func",
["getlocal"] = "func",
["setuservalue"] = "func",
["sethook"] = "func",
["traceback"] = "func",
["getregistry"] = "func",
["setmetatable"] = "func",
["gethook"] = "func",
}

I was using debug_setBreakpoint({Adr}, onBreak) to place breakpoint and attach to target. do debug. need to be attached too?
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Mon Sep 28, 2020 11:37 am    Post subject: Reply with quote

See similar topic here.

https://forum.cheatengine.org/viewtopic.php?t=615411

and

https://forum.cheatengine.org/viewtopic.php?t=615359

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3327

PostPosted: Tue Sep 29, 2020 9:56 am    Post subject: Reply with quote

So, where is the original post?
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Tue Sep 29, 2020 9:38 pm    Post subject: Reply with quote

Delete by the owner
_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites